PHP Socket Programming Detailed
This article mainly introduces the PHP socket programming detailed, the need for friends can refer to the following
1. Pre-knowledge
It has been very rare to see how many people use the PHP socket module to do
1. Preliminary knowledge
has been rarely seen how many people use PHP socket module to do something, probably everyone positioning it in the context of scripting language, but in fact, PHP socket module can do a lot of things, including doing
PHPSOCKET programming and socket programming. PHPSOCKET programming details, socket programming details 1. the preliminary knowledge has never seen how many people use the php socket module to do some things. most people have positioned it in the
Php socket programming and socket programming
1. Prerequisites
I have never seen how many people use the socket module of php to do some things. Maybe everyone has positioned it within the scope of the script language, but in fact, the php socket
What is a socket?
A socket is an intermediate software abstraction layer that the application layer communicates with the TCP/IP protocol family, which is a set of interfaces. In design mode, the socket is actually a façade mode, it is the complex
What is persistent connection?In fact, persistent connections are relative to common short connections, that is, to maintain the connection between the client and the server for a long time.The common short connection procedure is as
What is a long connection?
In fact, long connection is relative to the usual short connection, that is, long time to maintain the client and server connection state.
The usual short connection procedure is:
Connection-"data transfer-" close
This article mainly introduces PHPSOCKET programming details. For more information, see
1. prerequisites
I have never seen how many people use the socket module of php to do some things. maybe everyone has positioned it within the scope of the
http://www.infoq.com/cn/articles/netty-codec-framework-analyse/1. Background 1.1. Coding and decoding technologyOften we also get used to calling encoding (Encode) serialization (serialization), which serializes objects into byte arrays for network
What is a long connection?In fact, a long connection is relative to the usual short connection, that is, long time to maintain the client and the server connection state.The usual short connection operation steps are:Connect-"Data transfer-" close
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.