Code portability Linux to Mac and back.

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

On 2/5/07, Steve <smorrey at> 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
> 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.

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