
14 Dec
2006
14 Dec
'06
4:05 p.m.
On 12/13/06, Sigbjorn Finne
as you've time-consumingly discovered, Network.Socket.HostAddress is represented in network byte order (something that's not well documented, and a potential trap.)
You may want to consider using Network.Socket.inet_addr as a constructor.
Thanks to everyone for their help and suggestions. I agree, however, with Tomasz that the address should be in host byte order to the application. At the very least, the port value and the address should use the same byte ordering. For now, I'll use inet_addr as a constructor. Thanks again. -- Rich AIM : rnezzy ICQ : 174908475