Chapter 6. Connectionless-Oriented Protocols

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. ...

Get Linux Socket Programming by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.