/*
After the socket has been created using socket_create () and bound to a name with socket_bind (),
It may be told to listen for incoming connections on socket.
*/
/*
This function will accept incoming connections on that socket.
Once a successful connection is made, a new socket resource is returned, which may be used for communication.
If there are multiple connections queued on the socket, the first will be used.
If there are no pending connections, socket_accept () will block until a connection becomes present.
If socket has been made non-blocking using socket_set_blocking () or socket_set_nonblock (), FALSE will be returned.
*/
/*
The function socket_read () reads from the socket resource socket created by the socket_create () or socket_accept () functions.
The maximum number of bytes read is specified by the length parameter.
Otherwise you can use \ r, \ n, or \ 0 to end reading (depending on the type parameter, see below ).
*/
Open CMD and enter "telnet 192.40.7.93 10000". try it on your own!
510) {this. resized = true; this. style. width = 510;} ">
Note: open php_sockets.dll.
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service