Code portability Linux to Mac and back.
smorrey at gmail.com
Mon Feb 5 09:31:25 MST 2007
Oh wow, I can't believe I missed that!
It works, thank you very, very much!
On 2/5/07, Byron Clark <byron.clark at gmail.com> wrote:
> 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://22.214.171.124/listener.h
> You'll probably want to add this line to the top of your Poll() method:
> addr_len = sizeof(struct sockaddr_in);
> PLUG: http://plug.org, #utah on irc.freenode.net
> Unsubscribe: http://plug.org/mailman/options/plug
> Don't fear the penguin.
More information about the PLUG