ESP32 learning notes - TCP server

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

Implementation of non blocking echo server by Kotlin NIO

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); while(true){ Socket socket = serverSocket.accept(); new Thread(()->{ ...

Added by coelex on Thu, 03 Feb 2022 10:29:21 +0200

Java project: Java TCP realizes network communication chat room (java+socket+IP+Internet+TCP)

1.1 Preface 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

Detailed flow and example of TCP and UDP based on socket network programming technology

There are too many explanations of specific functions. Analyze them by yourself according to the program. You can refer to this article: https://blog.csdn.net/qq_41687938/article/details/119102328?spm=1001.2014.3001.5501 https://blog.csdn.net/weixin_42193813/article/details/105666316 catalogue 1, socket 1.1 socket overview 1.2 introduc ...

Added by martinstan on Tue, 11 Jan 2022 01:24:34 +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

Socket programming - TCP mode

catalogue summary Socket communication based on TCP Construction works code SocketServerTCP class SocketThreadTCP SocketClientTCP demonstration summary 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

Network programming -- TCP principle

reference resources TCP/IP network programming Yin Shengyu TCP principle 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

muduo Learning Notes: Implementing TCP Network Programming Library-Connector in the net section

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