Basic Principles of phpsocket | server. php | client. php

Source: Internet
Author: User
Basic Principles of phpsocket: SERVER: Create a socket, bind the socket to the specified IP address and port, listen to all connection requests of the socket, and respond to or return to the Data Client: create a socket connection request socket send data to socket read socket Response count

Basic Principles of phpsocket: Server: create a socket = bind the socket to the specified IP address and port = listen to all the connection requests of the socket = respond to or return data to the client: create a socket = connection request socket = send data to socket = read socket Response count

Basic Principles of php socket:
Server: Create a socket = bind the socket to the specified IP address and port = listen to all connection requests of the socket = respond or return data
Client: Create a socket = connection request socket = send data to socket = read socket response data

(~ _~) If you do not understand the problem, please correct it ~~~ PHP
Server. php
                                                                                 
Client. php
  

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.