Category : socket

On the Internet, data is transmitted in packets of limited size. These packets are called datagrams. Each datagram contains a header and a payload. The header contains the address and port to which the packet is sent, the address and port from which the packet comes, a checksum to detect whether the data is corrupted, ..

Read more

[Original Address:https://blog.ti-node.com/blog …] The Chinese name of socket is socket, which is the “encapsulation” of TCP/IP. In reality, the network has only four layers, namely, the application layer, the transport layer, the network layer and the data link layer from top to bottom. The most commonly used http protocol belongs to the application layer, while ..

Read more

[Original Address:https://blog.ti-node.com/blog …] Just as the title says, the opening words of epoll are quivering. The reason for shaking and trembling is probably that there was almost no previous experience of “hand-cutting” epoll himself. Only epoll’s theoretical knowledge was used to cheat children into acting as masters. Now, without the care of the elder martial ..

Read more

It is often used in PHP programsshell_execExecute some commands while ordinary onesshell_execIs blocked, if the command execution time is too long, it may cause the process to be completely stuck.InSwoole4It can be used in coordination environment.Co::execExecute many commands concurrently. This article is based onSwoole-4.2.9AndPHP-7.2.9Version Synergetic example <? php $c = 10; while($c–) { go(function () ..

Read more

It is often used in PHP programsshell_execExecute some commands while ordinary onesshell_execIs blocked, if the command execution time is too long, it may cause the process to be completely stuck.InSwoole4It can be used in coordination environment.Co::execExecute many commands concurrently. This article is based onSwoole-4.2.9AndPHP-7.2.9Version Synergetic example <? php $c = 10; while($c–) { go(function () ..

Read more