Java network program based on IO, NIO, Netty (CS mode chat program for TCP)

I. IO 1. Characteristics of IO 1. Service-side blocking point server.accept(); When getting sockets inputStream.read(bytes); When the input stream reads data 2. Traditional sockets are short connections and can be servers with short connections. They can't make long connections. They belong toUTF-8...

Posted by iii on Thu, 09 Dec 2021 02:44:22 +1030

013 IP packet capture and ARP Protocol

1: Packet capture and packet header analysis 1.1: use of Kelai bag grabbing tool 1. Download address: Click download 2. Next installation without brain 3 Because win7 does not have telnet service, Download putty software and connect to 10.1.1.2 remotely Then log in: Then open the Kelai softwarUTF-8...

Posted by shivers on Thu, 09 Dec 2021 15:49:24 +1030

KCP [reliable information transmission based on UDP] - in-depth understanding of TCP

introduction Because I'm still interested in the game, I heard that UDP is often used in the game to realize reliable information transmission. But how to realize it has always been a mystery in my eyes. In a study, I came across the code of KCP. Although the code is not long, the logic is verUTF-8...

Posted by webmaster02 on Sat, 11 Dec 2021 22:26:46 +1030

Java uses UDP protocol to establish broadcast group communication [with communication source code, Java interview common questions

Use datagram pocket (byte [] buf, int length) to create a byte array to receive packets. Use the receive() method of datagram packet class to receive UDP packets, One thing to note here is that when the receive() method of DatagramPacket class starts to receive data, if there is no data that cUTF-8...

Posted by X74SY on Wed, 15 Dec 2021 20:00:49 +1030

Fundamentals of network programming

Network programming 1. Overview Global village: exchange with foreign students letter [external link picture transfer failed. The source station may have anti-theft chain mechanism. It is recommended to save the picture and upload it directly (img-syhuvuap-1630732695245)( https://raw.githubuserUTF-8...

Posted by jgires on Thu, 16 Dec 2021 21:44:46 +1030

Java core class library part 8 -- network programming

Java core class library part 8 -- network programming 1. Seven layer network model OSI (Open System Interconnect), namely open system interconnection, is a network interconnection model studied by ISO (International Organization for Standardization) in 1985. When sending data, it is necessary tUTF-8...

Posted by danielrs1 on Fri, 17 Dec 2021 02:24:01 +1030

LWIP learning Socket (application)

Original link: https://blog.csdn.net/qq_39854159/article/details/120940325 Socket interface programming https://blog.csdn.net/qq_39854159/article/details/120693512?spm=1001.2014.3001.5501 1 client and server flowchart Its flow chart is like making customer service calls. The server can be undeUTF-8...

Posted by yuws on Fri, 17 Dec 2021 15:49:24 +1030

Fundamentals of network programming

Network programming Computer network: a computer system that connects multiple computers with independent functions and their external equipment in different geographical locations through communication lines and realizes resource sharing and information transmission under the management and coUTF-8...

Posted by billmasters on Sun, 19 Dec 2021 09:41:00 +1030

Build tcp server using boost protocol

In previous projects, boost::asio was used to build the Tcp server. Recently, a new project also needs to build the server, so I want to migrate the previous code. The original project was built using asynchronous callback functions. In retrospect, it was difficult to write callback functions aUTF-8...

Posted by MBenefactor on Sun, 26 Dec 2021 19:31:32 +1030

ACL basic experiment

ACL introduction Access Control List ACL (access control list) is a set composed of a series of rules. ACL classifies messages through these rules, so that devices can process different types of messages. When the devices in the network communicate with each other, it is necessary to ensure theUTF-8...

Posted by allistera on Mon, 27 Dec 2021 07:41:21 +1030