Lines Matching refs:UDP_Client
50 ** main() starts two threads: UDP_Server() and UDP_Client();
54 ** He detects an EOF condition set by UDP_Client(). For each
56 ** expected content, then sends the packet back to UDP_Client().
58 ** UDP_Client() sends packets to UDP_Server() using sendto()
272 ** UDP_Client() -- Test a UDP client application
288 static void PR_CALLBACK UDP_Client( void *arg )
301 DPRINTF("udpsrv: UDP_Client(): starting\n" );
310 "udpsrv: UDP_Client(): PR_NewUDPSocket() returned NULL\n" );
327 DPRINTF("udpsrv: UDP_Client(): Binding socket\n" );
335 "udpsrv: UDP_Client(): PR_Bind(): reports: PR_ADDRESS_IN_USE_ERROR\n");
344 "udpsrv: UDP_Client(): PR_Bind(): failed: %ld with error: %ld\n",
353 ListNetAddr( "UDP_Client after Bind", &netaddr );
369 DPRINTF("udpsrv: UDP_Client(): Send EOF packet\n" );
382 sprintf( mbuf, "udpsrv: UDP_Client(): write_this_many: %d, numbytes: %d\n",
387 DPRINTF("udpsrv: UDP_Client(): SendTo(): socket\n" );
394 "udpsrv: UDP_Client(): PR_SendTo(): failed with error: %ld\n",
399 ListNetAddr( "UDP_Client after SendTo", &netaddr );
403 DPRINTF("udpsrv: UDP_Client(): RecvFrom(): socket\n" );
409 "udpsrv: UDP_Client(): PR_RecvFrom(): failed with error: %ld\n",
414 ListNetAddr( "UDP_Client after RecvFrom()", &netaddr );
427 "udpsrv: UDP_Client(): return data mismatch\n" );
442 "udpsrv: UDP_Client(): PR_Close(): failed to close socket\n" );
445 DPRINTF("udpsrv: UDP_Client(): ending\n" );
446 } /* --- end UDP_Client() --- */
532 UDP_Client,