1, Advantages and disadvantages of TCP and UDP
1. TCP is connection oriented (for example, dial up to establish a connection before making a call); UDP is connectionless, that is, there is no need to establish a connection before sending data.
2. TCP provides reliable services. In other words, the data transmitted through TCP connection i ...
Added by outsidaz on Sat, 19 Feb 2022 16:32:20 +0200
Traditional blocking schemes usually use other threads to process when there are new links, and each thread is responsible for processing a socket, such as
ServerSocket serverSocket = new ServerSocket(3000);
Socket socket = serverSocket.accept();
Added by coelex on Thu, 03 Feb 2022 10:29:21 +0200
In today's information society, with the rapid development of the network, people rely more and more on the network and are more and more inseparable from the network. As a result, there are more and more chat tools, such as MSN and QQ. The development of chat systems such as online chat is changing with each passing day. Therefor ...
Added by komquat on Mon, 17 Jan 2022 04:36:36 +0200
There are too many explanations of specific functions. Analyze them by yourself according to the program.
You can refer to this article:
1.1 socket overview
1.2 introduc ...
Added by martinstan on Tue, 11 Jan 2022 01:24:34 +0200
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
Socket communication based on TCP
Friends of Java development are not too unfamiliar with socket. We generally come into contact with it when we study Java courses. Socket is the intermediate software abstraction laye ...
Added by reub77 on Fri, 03 Dec 2021 04:44:21 +0200
TCP/IP network programming Yin Shengyu
I/O buffering in TCP sockets
The data sending and receiving of TCP socket has no boundary. For example, the client can slowly receive the data transmitted by the server in batches
In fact, the data is not transmitted immediately after the write function is called, and ...
Added by planetsim on Sun, 03 Oct 2021 20:34:42 +0300
Similar to TcpServer passively accepting connections using Acceptor, TcpClient actively initiates connections using Connector.
Several key points used by Connector:
In non-blocking network programming, the basic way to initiate a connection is to call connect(2), which indicates that the connection has been established when the socket becomes ...
Added by JasonMWaldo on Fri, 03 Sep 2021 19:29:20 +0300