Section 6 how TCP manages connections

In the process of learning Socket, I always wanted to learn about the bottom layer, so I found many materials on the Internet and found that there was still little description of the bottom layer. Finally, I found an article on managing Tcp connection. Because we know that Socket encapsulates Tcp/ip protocol, Socket itself is not a protocol, bu ...

Added by dsdsdsdsd on Fri, 14 Jan 2022 14:15:43 +0200

socket module and packet sticking

I socket module socket concept socket layer Understanding socket Socket is an intermediate software abstraction layer for communication between application layer and TCP/IP protocol family. It is a group of interfaces. In the design mode, socket is actually a facade mode. It hides the complex TCP/IP protocol family behind the socket interface ...

Added by newb110508 on Thu, 13 Jan 2022 10:53:48 +0200

[C language] Linux Socket select multiplexing

preface After learning multi process and multi thread, in contrast, when there are multiple concurrent connection requests, the multi process or multi thread model needs to create a process or thread for each connection, and most of these processes or threads are blocked. If 1000 clients are connected to the server at this time, 1000 pr ...

Added by Eal on Mon, 10 Jan 2022 21:46:54 +0200

linux network programming (detailed explanation of getaddrinfo and gethostbyname functions)

1, getaddrinfo Function prototype: int getaddrinfo(const char *node, const char *service, const struct addrinfo *hints, struct addrinfo **res); Function function: according to hints The specified parameter requires that the server be obtained node And store the obtained results in res in Function parameters: node The domain name of the server ...

Added by GSHelpBoy on Sat, 01 Jan 2022 19:00:36 +0200

Hongmeng source code analysis

Trans in soft bus module_ Service directory analysis summary This paper mainly summarizes trans under soft bus module_ The functions and functions of a file in the service directory are macroscopically grasped_ The role of service in Hongmeng system. trans_ The service module relies on the network socket service provided by the system OS to pr ...

Added by unreel on Sat, 01 Jan 2022 15:02:09 +0200

Linux Network Management

1, Modify network card name Centos6 network card names are eth0, eth1 Centos7 network card names are ens32, ens33 Because this irregular naming method brings difficulties to later maintenance, it is necessary to modify the network card name to eth0, eth1 1. After installing the operating system, modify the naming rule of the network card ...

Added by newbtophp on Sat, 01 Jan 2022 14:06:30 +0200

Local socket (domain) communication

socket IPC    socket API was originally designed for network communication, but later developed an IPC mechanism based on the socket framework, namely UNIX Domain Socket. Although the network socket can also be used for interprocess communication of the same host (through loopback address 127.0.0.1), but UNIX Domain Socket is mor ...

Added by baennaeck on Sun, 26 Dec 2021 13:09:45 +0200

socket programming process and function explanation

1, Create socket socket is a readable, writable, controllable and closable file descriptor (integer number) // Function prototype int socket(int domain, int type, int protocol) //Parameter interpretation domain: Specifies the protocol used by the system. Can be TCP/IP Protocol family, or UNIX Protocol family. The corresponding values are ...

Added by mullz on Sat, 25 Dec 2021 19:33:33 +0200

BIO and NIO summary

BIO and NIO Note: the io models discussed in this paper are based on the network communication socket BIO -- blocking IO model In network communication, the client establishes a connection with the server first. Because the server does not know when the client will send data, the server has to start a thread to receive messages from the clie ...

Added by kumaran on Thu, 23 Dec 2021 11:51:58 +0200

Socket and address

socket In a typical client / server scenario, the application uses socket to communicate as follows: Each application creates a socket. Socket is a "device" that allows communication, which is used by both applications The server binds its socket to a well-known address so that the client can locate its location Socket address fo ...

Added by Allenport on Mon, 20 Dec 2021 13:57:50 +0200