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

Go---Go network programming (detailed)

The core of the Internet is a series of protocols, collectively known as "Internet Protocol Suite". It is these protocols that specify how computers connect and network. When we understand these protocols, we understand the principle of the Internet. Because these protocols are too large and complex, there is no way to generaliz ...

Added by yarnold on Sun, 28 Nov 2021 05:29:58 +0200

Build a static Web server locally in Python

Static Web server - return fixed page data Learning objectives Be able to write the response message of assembling fixed page data 1. Develop your own static Web server Implementation steps: Write a TCP server programObtain the http request message data sent by the browserRead the fixed page data, assemble the page data into HTTP res ...

Added by madsosterby on Fri, 26 Nov 2021 21:44:31 +0200

JavaSE detailed summary -- Wanzi pure hand code

summary Test site: Java development history -- general understandingIt is divided into J2ME, J2SE and J2EECharacteristics of Java language (open, simple, robust, secure, network oriented, full OOP, cross platform)Comparison between Java and C + +:Analyze the differences and relations among JVM, JRE and JDKjava programs (. java files) are ...

Added by Perry Mason on Wed, 17 Nov 2021 07:41:23 +0200

Java realizes the communication between client and server through socket

When learning socket communication in Java, the teacher assigned an assignment and took this opportunity to sort out the relevant knowledge. The topics are as follows: Write client-server program and use Socket technology to realize communication. Both parties agree that the communication port is 6789. Server side function: after receiving the ...

Added by R1der on Wed, 06 Oct 2021 23:32:45 +0300

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

Analysis of NIOSOCKET's driest goods

About NIOSOCKET I won't introduce the underlying API of NIOSOCKET much here. Take the dry goods code directly I mainly realize NIOSCOKET simulated chat communication here I wrote an article about SOCKET and opened a new article about brother NIOSOCKET; SOCKET server niosocket service startup class is designed to establish a connection In ...

Added by rocksolidsr on Tue, 14 Sep 2021 06:34:17 +0300

Express management console simple version - add multithreading and network programming (full version with complete source code) (Java)

For the array storage version, please refer to the following article: Express management console simple version - array storage Version (Java) For the List collection storage version, please refer to the following article: Express management console simple version - List collection storage Version (Java) For Map collection ...

Added by taiger on Sat, 04 Sep 2021 08:00:49 +0300

C programming under Linux: TCP/IP network communication

Today, I will talk about Socket communication under Linux, including client and server. Customer service terminal The idea of connecting the client to the server is as follows:1. Establish Socket link, 2. Set the communication mode, IP and port of the server, and specifically set sockaddr_in, the ...

Added by lemonpiesaregood on Wed, 24 Jun 2020 10:11:07 +0300

JAVA-IO streaming advanced NIO

NIO Java NIO (New IO) is a new IO API introduced from Java version 1.4. NIO has the same function and purpose as the original IO, but it is used in a totally different way. NIO supports buffer oriented, channel based IO operations. NIO will read and write files in a more efficient way. Main differences ...

Added by Bill H on Tue, 16 Jun 2020 10:48:24 +0300