A study of Netty

Introduction to Netty 1, Composition** 1.Bootstrap Netty applications set the start of the bootstrap class, which provides a container for application network configuration 2.Channel The underlying network transmission API must provide interfaces for I/O operations, such as read, write, connection, ...

Posted by captain_scarlet87 on Mon, 20 Jan 2020 04:00:28 +0100

mysql is the master-slave copy of each other

  Master-1: 192.169.7.242 Master-2: 192.169.0.197 MySQL version: mysql-5.7 1. Modification and description of MySQL configuration file Modify mysql of the two nodes respectively. Here, modify the configuration file to / etc/my.cnf Modify Master-1 as follows:   # For advice on how to change sett ...

Posted by cybersurfur on Sun, 19 Jan 2020 10:28:59 +0100

An example of using Websocket developed by Python

I learned how to implement web development in java. Today I want to try to implement it in python, so I found the code on the Internet 2.1. Effect 1 (a client connects to the service and sends a message) 2.2. Effect 2 (another client connects to the service and sends a message) 2.3. Effect 3 (the servic ...

Posted by starmikky on Fri, 17 Jan 2020 15:14:10 +0100

netty - start process

netty start process Start instance: public final class EchoServer { static final boolean SSL = System.getProperty("ssl") != null; static final int PORT = Integer.parseInt(System.getProperty("port", "8007")); public static void main(String[] args) throws Exception { // Configure ...

Posted by superdude on Fri, 17 Jan 2020 12:33:42 +0100

C foundation takes you to write redis ae event driven model

Introduction - overall understanding The event driven model of redis ae has a lot of chatting on the Internet. However, after you carefully read one article after another, it may be very comfortable for you to read, but for Why does the author write like this, starting point, advantages, disadvantages... Maybe it's still vague, isn't it? We ...

Posted by jarvishr on Wed, 08 Jan 2020 16:43:53 +0100

Go Network File Transfer

Process analysis With the help of TCP, the basic idea is as follows: The sender (client) sends the file name to the server, and the server saves the file name. The receiver (server) returns a message ok to the client to confirm that the file name is saved successfully. After receiving the message, the sender (client) begins to send the file da ...

Posted by evdawg80 on Tue, 07 Jan 2020 09:53:27 +0100

HTML5 file upload progress bar based on HT for Web vector

In HTML, in the process of file upload, there are many cases where there is no prompt, which is very bad in the experience. Users don't know whether there is a successful upload or not, so the content introduced to you today is through HT for Web Vector to achieve HTML5 file upload progress bar, vector in< Application of embedding vector Cha ...

Posted by LarryK on Tue, 07 Jan 2020 04:26:36 +0100

19 programming that must be mastered in Java se Foundation

1. Reverse order of array public void getReverse1(int[]arr) { int start=0; int end=arr.length-1; for(int i=0;i<arr.length/2;i++) { int temp=arr[start]; arr[start]=arr[end]; arr[end]=temp; start++; end--; } } public void getReverse2(int []a ...

Posted by morris520 on Sat, 04 Jan 2020 18:10:30 +0100

Netty learning one: the first netty program

Recently, after studying netty and reading the blog for a few days, I plan to write a hands-on program by myself. This program is very simple: the client sends a ping, and the server will reply a pong accordingly. When the server loses the connection, it will be disconnected. The whole code is divided into two parts: client and server. The stru ...

Posted by signs on Wed, 01 Jan 2020 06:19:25 +0100

Max allowed packet setting of Mysql

max_allowed_packet is a setting parameter in Mysql, which is used to set the size of the accepted package. According to different situations, the default value may be 1M or 4M. For example, in the case of 4M, the size of this value is: 4 * 1024 * 1024 = 4194304 phenomenon When a prompt appears in the log, such as "Packag ...

Posted by gabrielkolbe on Mon, 30 Dec 2019 16:42:23 +0100