December 1999
Intermediate to advanced
816 pages
20h 27m
English
The other approach to coding with sockets is to use UDP sockets. Unlike TCP sockets, UDP sockets do not create a connection between client and server, but rather they take a "fire and forget" approach. That is, your client or server sends a Datagram packet to the other system and then goes on with other work. Sometime later, the other system should receive the packet, but, in general, there is no way for the sender to be sure that the packet arrived successfully. UDP sockets allow you to write programs that use asynchronous communication, programs in which objectA sends data out on the network and then goes on with its work, while objectB waits on its socket to receive input. This is an appropriate structure ...
Read now
Unlock full access