Phpsocket communication problems ??

Source: Internet
Author: User
My problem is the problem that occurs in the following situations. solve the problem... {code ...} my problem is the problem that occurs in the following situations. solve the problem...

Chat between a and B, right ?? Socket communication: socket_server.php communicates with socket_client.php, right ?? Now we need to implement a and B chat. In my understanding, neither a nor B can play the socket_server.php role, because socket_server.php is used to enable the communication port and receive or push messages in real time as the server port. So the question is: if both a and B are client_server.php, then the socket programming I learned is not a waste ?? Because socket communication is the communication between socket_server.php and client_server.php, rather than between client_server.php and client_server.php (similar to communication between a and B), I am so worried. I do not know how to crack it ?? Or am I wrong about socket communication ?? No matter which one, please correct it! It is best to give me a simple example that I can write for myself. I don't want to catch all the tricks on the internet. they will almost make me understand what this problem is now... ask for advice!

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.