That should work just fine, as that's similar to how IP addresses are typically implemented. Normally in the socket code, the four octets are each a single byte, which are packed into a 32 bit value. You're proposing to perform a similar mapping into a number.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: IP in range
by roboticus
in thread IP in range
by rhymejerky
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |