TCP chat program based on IO, NIO and Netty

preface Java version 1.4 introduces a new IO API, which has the same function and purpose as the original IO; It can replace standard java IO, but the implementation method is different. NIO is a buffer oriented and channel based IO operation; NIO can improve the reading and writing of files. Based on this advantage, there are more and m ...

Added by scottfossum on Wed, 15 Dec 2021 07:33:33 +0200

Network communication -- > TCP

1. TCP communication For connection oriented communication, the client and server must shake hands three times and establish a logical connection before communication (Security) 1.1 communication steps The server starts first. The server will not actively request the client. The client must request the server. The client and the server establi ...

Added by rusbb on Mon, 13 Dec 2021 11:53:54 +0200

Application case of building complex network based on NetworkX

Application case of building complex network based on NetworkX Content of this article This paper mainly includes two parts: 1. Installation of Networkx and drawing of campus network topology. This step has the function of fixing the location of the generation node and adding the user-defined icon of the node. The main functions are: G.ad ...

Added by MBK on Sat, 11 Dec 2021 13:19:26 +0200

Enumeration types are not allowed for RPC interfaces. Why?

preface Before we talk about this, let's take a look at the relevant background knowledge. Introduction to RPC RPC is short for Remote Procedure Call. Remote service call. Simply put, one node provides services (called server) and one node consumes services (client). RPC communication mode The communication protocol between the server and ...

Added by lazaruz on Sat, 11 Dec 2021 12:12:39 +0200

The kylin16 version of ubuntu installs OpenAI gym

Reference link: Vmware Ubuntu kylin NAT mode Internet access settings_ Y4ung CSDN blog Ubuntu 16.04 pure version - install Python 3.8.1/upgrade pip - Wang Yu - blog Park (cnblogs.com) Ubuntu Python 3 PIP reports an error syntax error: invalid syntax_ Crabapple flower sleepless blog - CSDN blog The virtual machine installation will not ...

Added by zulubanshee on Wed, 08 Dec 2021 23:50:06 +0200

Docker container network configuration

Docker container network configuration The creation of namespace in Linux kernel ip netns command You can complete various operations on the Network Namespace with the help of the ip netns command. The ip netns command comes from the iproute installation package. Generally, the system will install it by default. If not, please install it ...

Added by rewast on Wed, 08 Dec 2021 05:29:22 +0200

Write an HTTP forward proxy

concept First, let's understand the related concepts of HTTP proxy. Generally speaking, there are two types of HTTP proxy, one is forward proxy and the other is reverse proxy. Although they are all proxies, there are still differences. The VPN we usually use is the forward proxy. We specify a server, and then connect to the server through the ...

Added by ununium on Tue, 07 Dec 2021 08:06:39 +0200

System call or crash

5 system call or crash This is where we go into system calls (and other library calls) that allow you to access the network functions of Unix boxes or any box that supports socket application programming interfaces (BSD, windows, Linux, apple, what do you have) When you call one of these functions, the kernel will automatically take over and d ...

Added by Bobo the Bugbear on Mon, 06 Dec 2021 23:18:22 +0200

JAVA network programming personal notes Chapter 8 TCP Socket programming

TCP Socket programming Introduction to computer networking Introduction to Socket and ServerSocket Introduction to relevant knowledge The process of using Socket for network communication The server program binds a socket to a specific port, and waits for and listens to the client's connection request through this socketThe ...

Added by overlordhu on Mon, 06 Dec 2021 20:41:42 +0200

Configuration and common operations of docker container network

1. The Linux kernel implements the creation of namespace 1.1 ip netns command You can complete various operations on the Network Namespace with the help of the ip netns command. The ip netns command comes from the iproute installation package. Generally, the system will install it by default. If not, please install it yourself. Note: sudo ...

Added by PDXDesigner on Mon, 06 Dec 2021 04:16:58 +0200