Lines Matching refs:UDP_Server

50 ** main() starts two threads: UDP_Server() and UDP_Client();
53 ** UDP_Server() does repeated recvfrom()s from a socket.
55 ** packet received by UDP_Server(), he checks its content for
58 ** UDP_Client() sends packets to UDP_Server() using sendto()
140 ** UDP_Server() -- Test a UDP server application
153 static void PR_CALLBACK UDP_Server( void *arg )
163 DPRINTF("udpsrv: UDP_Server(): starting\n" );
166 DPRINTF("udpsrv: UDP_Server(): Creating UDP Socket\n" );
173 "udpsrv: UDP_Server(): PR_NewUDPSocket() returned NULL\n" );
186 DPRINTF("udpsrv: UDP_Server(): Binding socket\n" );
192 if (debug_mode) PR_fprintf(output, "udpsrv: UDP_Server(): \
200 if (debug_mode) PR_fprintf(output, "udpsrv: UDP_Server(): \
210 ListNetAddr( "UDP_Server: after bind", &netaddr );
215 DPRINTF("udpsrv: UDP_Server(): RecvFrom() socket\n" );
222 "udpsrv: UDP_Server(): PR_RecvFrom(): failed with error: %ld\n",
227 ListNetAddr( "UDP_Server after RecvFrom", &netaddr );
233 DPRINTF("udpsrv: UDP_Server(): EOF on input detected\n" );
238 DPRINTF("udpsrv: UDP_Server(): SendTo(): socket\n" );
245 "udpsrv: UDP_Server(): PR_SendTo(): failed with error: %ld\n",
250 ListNetAddr( "UDP_Server after SendTo", &netaddr );
254 DPRINTF("udpsrv: UDP_Server(): Closing socket\n" );
261 "udpsrv: UDP_Server(): PR_Close(): failed to close socket\n" );
265 DPRINTF("udpsrv: UDP_Server(): Normal end\n" );
266 } /* --- end UDP_Server() --- */
436 DPRINTF("udpsrv: UDP_Server(): Closing socket\n" );
461 ** Calls the function UDP_Server()
509 UDP_Server,