8.4. Socket commands
Communication between peers in a network is done using sockets. Calypso complies with
the industry standard BSD sockets which provides IP based connection interface for da-
ta transfer. In this section, all the commands necessary to utilize the socket features are
described.
8.4.1. Sockets work flow
At the transport layer, connection between peers can be of two types :
• Connectionless socket : Also know as Datagram sockets, this allows data exchange
between network entities without establishing a connection. This results in minimal
connection latency but cannot ensure data integrity or packet order.
• Connection-oriented socket : Stream sockets establish a connection between two en-
tities before data exchange there by ensuring data integrity and packet order.
8.4.1.1. TCP socket
A TCP socket, a connection-oriented socket, creates a bi-directional connection between
the two network peers, a client and a server. Calypso supports both client and server roles.
Here is a general work flow of a TCP socket ( see figure
Figure 7: TCP socket work flow
Calypso reference manual version 1.2
© April 2019
www.we-online.com/wireless-connectivity
47