apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruben Hesselbæk <Mr.Ch...@area99.dk>
Subject apr_socket_recvfrom
Date Wed, 12 Apr 2006 11:25:13 GMT
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



Mime
View raw message