Up to this point in this book, the nature of socket communications has largely been avoided. Instead, you have been focused on creating sockets, binding addresses to them, shutting them down, or closing them. Now it is time for some real fun in actually using sockets.
There are two basic modes of communication for sockets. They are connectionless- and connection-oriented communications.
In this chapter, you will learn
The differences between connectionless- and connection-oriented communication
How to perform connectionless input and output operations
How to write a datagram server
How to write a datagram client
Now turn your attention to a comparison between connectionless- and connection-oriented communication. ...