You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Ruben Hesselbæk <Mr...@area99.dk> on 2006/04/12 13:25:13 UTC

apr_socket_recvfrom

I have a question regarding apr_socket_recvfrom.

I have a program that monitors multiple gameservers. I use 
apr_socket_recvfrom, so I can detect which server is reporting back to 
my program, but somehow it seems that the port value is never set in the 
apr_sockaddr_t struct, and i have to use something like the
#ifdef WIN32
        from->port = ntohs(from->sa.sin.sin_port);
#endif       
Is this a bug, or am I just missing something.

/Ruben Hesselbaek