Socket

A socket consists of a set of application programming interfaces (APIs) working between the transport layer and application layer. The socket shields differences of transport layer protocols and provides the uniform programming interfaces for the application layer. In this manner, the application layer, being exempt from the detailed process of the TCP/IP protocol suite, can transmit data over IP networks by calling socket functions. Figure 1 shows the position of the socket in the TCP/IP protocol stack.

Figure 1 Schematic diagram of the socket in the TCP/IP protocol stack

The following types of sockets are supported by different protocols at the transport layer:

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >