UDP Server/client example

The interested reader can refer an introduction on UDP socket connection in the previous article <A UDP Socket Connection>. In this article we look at the server/client code example and examine its intricacies in the following article. In UDP socket connection establishment – the following occurs The UDP server binds itself to a port. The […]

A UDP Socket connection

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 […]

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 […]