2Basics

Tip 1: Understand the Difference between Connected and Connectionless Protocols

One of the most fundamental notions in network programming is that of connection-oriented versus connectionless protocols. Although there is nothing intrinsically difficult about the distinction, it is a frequent cause of confusion among those new to network programming. Part of the problem is a matter of context: Obviously two computers must be “connected” in some sense if they are to communicate, so what does “connectionless communication” mean?

The answer is that connection-oriented and connectionless refer to protocols. That is, the terms are applied to how we transfer data over a physical medium, not to the physical medium itself. Connection-oriented ...

Get Effective TCP/IP Programming: 44 Tips to Improve Your Network Programs 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.