Code portability Linux to Mac and back.

Byron Clark byron.clark at gmail.com
Mon Feb 5 09:16:54 MST 2007


On 2/5/07, Steve <smorrey at gmail.com> wrote:
> The break is occuring when I do the socket polling.  OSX appears to be
> lying about the IP address of the sender and saying it's 0.0.0.0.
> However in Linux the exact same code produces the correct result.
>
> Here is a link to the file in question if anyone would like to have a look.
> ftp://69.60.117.0/listener.h

You'll probably want to add this line to the top of your Poll() method:
addr_len = sizeof(struct sockaddr_in);



More information about the PLUG mailing list