Swoole Learning Network Communication Engine WebSocket Service
I. Basic overview of Websocket
WebSocket protocol is a new network protocol based on TCP. It realizes full-duplex communication between browser and server - allowing server to send information to client actively.
Why do we need WebSocket?Defect: HTTP communication can only be initiated by the client
WebSocket features:
Based on TCP Protocol
Pe ...
Posted by wes007 on Wed, 09 Oct 2019 03:14:44 -0700
LeetCode Training 36: Effective Sudoku
Judge whether a 9x9 Sudoku is valid. Just verify the validity of the number that has been filled in according to the following rules.
Numbers 1-9 can only appear once per line.
Numbers 1-9 can only appear once in each column.
Numbers 1-9 can only appear once in each 3x3 uterus separated by a thick l ...
Posted by MarCn on Wed, 09 Oct 2019 02:31:45 -0700
Codeforces Round #576 (Div. 1) E. Rectangle Painting 2
Rectangle Painting 2
There is a square grid of size n×n. Some cells are colored in black, all others are colored in white. In one operation you can select some rectangle and color all its cells in white. It costs min(h,w) to color a rectangle of size h×w. You are to make all cells white for minimum tot ...
Posted by yurko on Wed, 09 Oct 2019 01:06:01 -0700
Detailed steps and test demo of c# WPF program accessing voice network dll
Voice network is a video and audio chat tool. Because the official network only provides C++DLL, it can not be directly used in WPF programs. In order to facilitate the use of developers, I am further encapsulating the voice network DLL, encapsulating it into its own interface, and at the same time facilitating c# calls.
In the first step, agor ...
Posted by michalurban on Tue, 08 Oct 2019 19:08:57 -0700
Linux DNS Separation and Resolution
Setting up DNS separate parsing can provide different domain name parsing records for different clients. When a client from different addresses requests the same domain name, it provides different parsing results.
Install the bind package
[root@localhost ~]# yum install bind bind-utils -y
Dual Network Card Configuration
Both network cards ar ...
Posted by bradleybebad on Tue, 08 Oct 2019 15:48:07 -0700
DCore Application Case: Rating Content
Scoring and Feedback
After purchasing the content, you can score it by adding information to the comments.
METHODS:
leave_rating_and_comment-Score and comment on content
void leave_rating_and_comment(string consumer,
string URI,
uint64_t rat ...
Posted by waygood on Tue, 08 Oct 2019 07:33:36 -0700
LeetCode Algorithmic Question: Spiral Order of Spiral Matrix
Given a matrix containing m x n elements (m rows, n columns), return all elements in the matrix in a clockwise spiral order.
Example 1:
Input:
[
[ 1, 2, 3 ],
[ 4, 5, 6 ],
[ 7, 8, 9 ]
]
Output: [1, 2, 3, 6, 9, 8, 7, 4, 5]
Example 2:
Input:
[
[1, 2, 3, 4],
[5, 6, 7, 8],
[9,10,11,12]
]
Output: ...
Posted by happyneil on Tue, 08 Oct 2019 07:25:08 -0700
Installation of the latest version of swoole and functional testing of TASKS
Today we will install and test the multi-concurrent and high-performance network communication extension of php. This extension is developed by using C voice. After loading into PHP, it realizes multi-concurrent and asynchronous communication at the level of PHP. It simulates many characteristics of go voice and greatly broadens the application ...
Posted by karassik on Mon, 07 Oct 2019 19:12:30 -0700
JAVA Network Programming and Classical Case Echo
Java's network concept is not distinguished by the host, but by the process. JVM helps to solve the network transmission without our consideration.
Although JVM helps users hide the original information of the network, some operations are left to users. There are two kinds of network connections: TCP ...
Posted by t2birkey on Mon, 07 Oct 2019 17:57:51 -0700
Implementation of Simple RPC Framework Based on Netty
Preface
Now there are many examples of using Netty to build RPC framework on the Internet. Why do I write an article here to discuss it? I know very well that I may not have written them so well. There are two reasons why we should write about it:
First, because after learning Netty, we need to practice constantly to better grasp the use of Ne ...
Posted by pup200 on Mon, 07 Oct 2019 17:30:38 -0700