Alec Barker wrote:
Thanks for the response. I'll try that.
It would seem odd to require a length parameter if the IP address
is always 4 bytes.
I'm fairly sure the Berkeley sockets API allows you to use many of
its functions on more than one type of protocol, i.e. it supports
more than just TCP/IP. So, addresses might be different sizes
for different protocols (IP, Unix domain sockets, DECnet, SNA,
AppleTalk, etc.).
And if I understand correctly, NetLibGetHostByAddr() and friends
are derived from the Berkeley sockets API, which could explain why
they do variable lengths for addresses as well.
On the other hand, it's been a while since I've done anything
with sockets, so I could be totally wrong. :-)
- Logan
--
For information on using the Palm Developer Forums, or to unsubscribe, please
see http://www.palmos.com/dev/support/forums/