Custom Protocol and Golang Implementation
Write here is to make a summary for easy viewing when forgetting, and if there are mistakes in the article, please spray me haha, welcome to correct. It would be nice to help others.
Agreement
The so-called protocol is to specify a series of rules that enable the two or more parties who want to communicate to communicate normally. If we speak C ...
Posted by devil_online on Tue, 06 Aug 2019 04:14:07 -0700
RabbitMQ message queue monitoring API
RabbitMQ message queue monitoring API
Request address http://ip Port number/interface name
It is recommended that the monitoring data collection interval be 60 seconds.
HTTP API URL
HTTP request type
Interface Meaning
/api/connections
GET
Get all open connections under the current RabbitMQ cl ...
Posted by rallan on Mon, 05 Aug 2019 23:22:02 -0700
Python 3 Web Crawler Actual Warfare-21, Using Urllib: Handling Exceptions
In the previous section, we learned about the sending process of Request, but in the case of bad network conditions, what can we do if there is an exception? At this time, if we do not handle these exceptions, the program is likely to report errors and terminate the operation, so exception handling is very necessary.
Urllib's error module defi ...
Posted by marms on Sat, 03 Aug 2019 08:34:11 -0700
Custom Implementation of Reading and Writing Analysis in MySQL Cluster
Based on MySQL Router to achieve high availability, read-write separation, load balancing and so on, MySQL Router can be said to be a very lightweight middleware.Looking at the principle of MySQL Router, it is not complicated, and the principle is not difficult to understand. In fact, it is a proxy function similar to VIP. One MySQL Router has ...
Posted by pradeep79 on Sat, 03 Aug 2019 04:46:06 -0700
uni-app with PHP for single user login
Single user login, that is, in an application, only one user can login online, one user can login and be immediately offline on other devices. After confirmation, the login loading on the device is cleared and the login interface is returned.
uni-app is currently able to package Android, IOS, WeChat, PayPal and H5 with only one set of code by ...
Posted by OLG on Fri, 02 Aug 2019 18:04:07 -0700
Remember to encapsulate elementUI lists once
I just learned vue, looked at the components of elementUI, and wrote and played by myself.
The basic needs are as follows
Check all boxes, Pagination
Like iview, the table header is customized by passing in an array of options, and the table content is controlled by passing in an array of data.
It's ...
Posted by Awesome Trinity on Thu, 01 Aug 2019 19:14:35 -0700
Analysis of TCP Reset Message Segments and RST Common Scenarios
RST represents a connection reset used to close connections that no longer need to exist.Normally it means an abnormal closing of the connection, distinguishing it from a normal closing of the connection after four breakups.
The three conditions for generating RST are:
The SYN destined for a port arrives, but there is no server listening on th ...
Posted by earthlingzed on Thu, 01 Aug 2019 18:44:45 -0700
javaSE Practice Programs Everyday-day19 Network Programming, udp, tcp Protocol, UDP Protocol Chat Room
Learning Catalogue:
Network programming
computer network
It refers to connecting multiple computers with independent functions in different geographical locations and their external equipment through communication lines.
Under the management and coordination of network operating system, network manage ...
Posted by beckstei on Thu, 01 Aug 2019 03:02:52 -0700
C/S model: TCP, UDP build client and server (BIO implementation)
socket programming is provided in Java to build client and server side
TCP
Steps to build the server side:
(1) bind: Bind port number
(2) listen: listen for client connection requests
(3) accept: an instance of returning a connection to the client
(4) read/write: read/write operations, i.e., interactio ...
Posted by davex on Wed, 31 Jul 2019 19:00:32 -0700
High Performance Server Programming-poll of I/O Reuse
The previous section describes one of the ways to reuse I/O, select. This paper will discuss the second way of poll ing.
I. Polling
1. Functional prototype
Int poll(struct pollfd *fds, int nfds, int timeout);
Fds: Specify the set of events being monitored; pass the array header address, defined ...
Posted by sara_kovai on Wed, 31 Jul 2019 08:43:51 -0700