16, About IO stream separation
1. What is I/O stream separation?
Recall the program we wrote before. In the first program, as long as we obtain a socket and successfully connect to the server, we can realize the data exchange with the server, and this data exchange is to send and receive data from the perspective of the client; The process of sending and receiving data ...
Posted by wemustdesign on Sun, 26 Dec 2021 07:25:58 +0100
Node.js network programming to realize the creation of HTTP, GET and POST
HTTP server and client (important)
HTTP Foundation
HTTP protocol: hypertext transmission control protocol, a general, stateless and data independent protocol (working at the application layer)
The process of interaction between server and client:
Establish TCP connection between client and server (HTTP protocol is implemented based ...
Posted by lhcpr on Sat, 25 Dec 2021 05:11:17 +0100
UDP network programming of Socket socket one-way and two-way exception handling normal communication between two people based on UDP
UDP network programming one-way and two-way exception handling of Socket socket
Socket
It is used to describe the IP address and port. It is the handle of the communication chain. The application sends or responds to the network request through the SocketIt is the basic operation unit of network communication supporting TCP/IP protocol,It is ...
Posted by peerData on Fri, 24 Dec 2021 14:31:49 +0100
Linux server program standardization
Linux Log System
The rsyslogd daemon can receive both user process output logs and kernel logs. The user process generates the system log by calling the syslog function. This function outputs the log to a UNIX local domain socket type (AF_UNIX) file / dev/log, and rsyslogd listens to the file to obtain the output of the user process. The kern ...
Posted by jrtaylor on Thu, 23 Dec 2021 22:50:23 +0100
Development of chat device under network communication (TCP actual combat Development) application development technology of connecting two computers -- socket module
TCP server (server)
If you want to perform the functions of the tcp server, you need to perform the following process
Socket create a socketThe bind method binds IP and portlisten makes the socket passiveaccept waits for unprovoked links (you must create a new listening socket and redefine a new receiver)recv/send receive send data
For accep ...
Posted by abitlikehomer on Tue, 21 Dec 2021 08:50:11 +0100
Weather APP: File Transfer System (tcpput/getfile.cpp client, tcpfileserver.cpp)
1.TCP glue/timeout: full duplex, unpack
FTP protocol for file transfer performance is insufficient [FTP protocol is a part of TCP/IP protocol, strictly speaking, application layer protocol, TCP communication two major bottlenecks: bandwidth, too many interactions (get server time, file list, rename, etc.). windows platform FTP installati ...
Posted by MathewByrne on Mon, 20 Dec 2021 23:32:58 +0100
⁉ Using socket to implement Ping command ⚡ Here comes the BOSS ⚡ Fishing artifact ⭐ A lot of dry goods ❤ Suggestions collection ❤ ️
Hello, I'm 😎
I wrote an article on hydrology earlier< Obtain the ip address and mac address of all connected devices under the current LAN >But what I didn't expect was that I was on the hot list, which was also my first article on the hot list, and the reading volume soared instantly 💥. However, few people have seen my hard core tech ...
Posted by chaiwei on Thu, 16 Dec 2021 18:41:53 +0100
Network socket programming under Linux -- realizing the communication between server (select) and multiple clients
1, About socket communication
Server side workflow:
Call the socket() function to create a socket, and bind the created socket with the server IP address with the bind() function Call the listen() function to listen to the socket created by the socket() function and wait for the client to connect. When the client request arrives Call the ...
Posted by ramkumar_unknow on Wed, 15 Dec 2021 04:17:38 +0100
What do you know about Java network programming? Java BIO network programming | early knowledge of Netty
Step by step, I learned the knowledge of JUC concurrent programming before, and now I finally come to Java IO network programming. It's difficult.
1, BIO introduction
Introduction: with the development of technology, two or more programs must interact, so it provides an end-to-end communication, which is equivalent to a encapsulation of the ...
Posted by bobbinsbro on Wed, 08 Dec 2021 11:28:49 +0100
Network programming AIO
Introduction to AIO model
AIO (Asynchronous I/O) asynchronous non blocking model supports AIO since java jdk.17. The AIO model needs the support of the operating system. The biggest feature of AIO is asynchronous capability, which works on socket and I/O.
Different from the NIO model, a read-write operation is taken as an example, just ...
Posted by Simon180 on Thu, 25 Nov 2021 21:20:41 +0100