UDP stands for User Datagram Protocol. As the name suggests, data is sent out as a complete message (or datagram) in contrast to stream socket where message boundaries are not preserved. The User Datagram Protocol (UDP) sits at the same level as the Transmission Control Protocol (TCP). However, it is a connection-less protocol as against […]
Analysing the Stream Socket connection
In the current article, we try and analyze what occurs at each stage of the Stream socket connection example. The Stream Socket example code for IPv4 is provided at this link here. The interested reader can look at the code on his linux shell and try and follow the actual connection establishment here. The initial […]
A Socket Server/Client Example – TCP Stream Sockets
TCP is a connection oriented protocol. The socket connection will follow the TCP 3- way handshake to establish the connection. In This Article, we take a look at a simple server and client example. The Internet IPv4 domain will be considered for the below example. The Stream socket will follow the below connection establishment process […]
Basic Socket communication APIs Explained
The Different Socket Communication APIs that need to be understood for setting up a socket communication link are Socket API The Socket API allows the creation of a socket and creates a file descriptor which is returned to the application requesting the same. The Socket API is provided below domain – The domain parameter indicates […]
An introduction to Sockets
A socket is a logical communication End-point. It is a software interface that provides a means of communicating between two networking devices or between two processes running on the same device (Unix Sockets). The most popular analogy i have come across for a socket and quote the same is to “look at a socket as […]