R
Richard
(e-mail address removed) wrote...
The ints aren't exclusively IP addresses. See above; I'm passing 32-
bit integers (the "e.g. the low level form of IP addresses" means
"for example, ... IP addresses").
(e-mail address removed) wrote...Richard wrote:
My input is basically a stream of 32-bit unsigned integers (e.g., the
low-level form of IP addresses) along with the occasional fixed-
length char array.
Treat it as a 4 byte array. InetAddress.getByAddress() wants a byte[]
anyway.Sorry for being brain-dead, but will he be able to do arithmetic on
it if it's in a 4-byte array? As in: unsigned char fbarray[4] ; ?
No, but why do you want to do arithmetic on IP addresses?
The ints aren't exclusively IP addresses. See above; I'm passing 32-
bit integers (the "e.g. the low level form of IP addresses" means
"for example, ... IP addresses").