Netty Case, Intermediate Extension of Netty 4.1 Seven "Netty Request Response Synchronous Communication"
Preamble Introduction
When we implement the RPC framework, we need to choose how sockets communicate.And we know that socket communication is similar to qq chatting in general, sending messages in the past and replying whenever possible.But our RPC ...
Posted by dan1956 on Wed, 04 Sep 2019 03:31:01 +0200
java applet - simple version of multi-person chat room
Functional requirements:
1. Each time the main function is run, a client chat interface is created.
2. The client interface is divided into three parts: the public screen (displaying all the information sent by the client), the private screen (for inputting the information that the individual wants to send), and the sending button (clicking o ...
Posted by karldenton on Mon, 02 Sep 2019 14:59:07 +0200
Concurrent programming for python learning
Catalog
I. Multiple Processes of Concurrent Programming
1. Introduction of multiprocessing module
2. Introduction of Process Class
3. Use of Process Class
3.1 Two ways to create sub-processes
3.2 Getting process pid
3.3 Spatial isolation between validation processes
3.4 join Method fo ...
Posted by ElectricRain on Tue, 27 Aug 2019 14:41:08 +0200
File Finding and Text Processing
Define a command alias that works for all usersFor example: lftps='lftp 172.168.0.1/pub'
[root@localhost /]# echo "alias lftps='lftp 172.168.0.1/pub'" >> /etc/bashrc
[root@localhost /]# source /etc/bashrc
[root@localhost /]# alias
alias cp='cp -i'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --col ...
Posted by urb on Sun, 25 Aug 2019 15:14:11 +0200
Concurrent programming, summary
1. course
1. Two ways of process creation
The first way to start the process is:
from multiprocessing import Process
import random
import time
def task(name):
print(f'{name} is running')
time.sleep(random.randint(1, 3))
print(f'{name} is gone')
if __name__ == '__main__': # In windows environment, the opening process must be u ...
Posted by The Jackel on Sat, 24 Aug 2019 14:48:44 +0200
kafka distributed cluster construction
Version 1
CentOS 7.5
zookeeper-3.4.12
kafka _2.12-1.1.0
II. zookeeper Installation
1. Download and decompress zookeeper compression package
tar -zvxf zookeeper-3.4.12.tar.gz
2. Creating Data and Log Folders
mkdir /usr/local/zookeeper-3.4.12/data
mkdir /usr/local/zookeeper-3.4.12/logs
3. Copy configuration files
Go to th ...
Posted by justAnoob on Sat, 24 Aug 2019 11:49:00 +0200
File upload of network programming 1
package com.itheima.demo02.FileUpload;
import java.io.FileInputStream;import java.io.IOException;import java.io.InputStream;import java.io.OutputStream;import java.net.Socket;
/*
Client of file upload case: read local file, upload to server, read data written back by server
To make clear:
Data source: c:\1.jpg
Destination: Server
Imp ...
Posted by jbog91 on Fri, 23 Aug 2019 11:19:21 +0200
python udp communication details
Introduction to socket
1. How to communicate between processes on different computers
The first problem to be solved is how to uniquely identify a process, otherwise communication can not be started!
On a computer, a process can be uniquely ident ...
Posted by jmfillman on Fri, 23 Aug 2019 09:07:23 +0200
socket simulation client and server
Idea: Client first receives data from keyboard, then converts it into output stream, then into print stream, sends it in security, receives data from server, reads it by line, and finally closes input and output, releases resources.
The server receiv ...
Posted by jsnyder2k on Thu, 22 Aug 2019 07:13:17 +0200
Tomcat Source Analysis--- HTTP Request Processing
Finally, we're in the analysis phase of Connector, which is one of Tomcat's most complex features.Connector is named connector in Chinese. Since it is a connector, it will certainly connect something. What do you want to connect?
Connectors are used to accept requests and encapsulate them as Request s and Response s, which are then handled ...
Posted by chrispos on Tue, 20 Aug 2019 04:51:42 +0200