Network game hall + bridge system Appendix 1 Communication Protocol

Source: Internet
Author: User

server protocol
502 check whether the login is successful
504 send client chat information by Hall
506 send client chat information by desk
508 send to a new user's userlist in a hall
510 others are offline, notify the client in the same hall
512 to the owner of a hall, and someone else leave the hall
514 to the owner of a hall, some people join the hall
516 cannot join the desk
518 to all people in a hall. Others join a desk
520 to all people in a hall, when someone else leave a desk
522 is sent to all people in a hall or not all people in a hall (the table is OK and 524 protocol is sent to the table ), someone is OK
524 send the IP addresses of deskisok and proxyserver to all users of a table (the last isok person)
526 send the IP addresses to all users of a table (excluding proxyserver ): you can start to listen on proxyserver
528 when you receive the 527 Protocol sent by all clients on the table: send to the table proxyserver: trigger the "licensing" event gamestart, send a message (including global variables such as status) to the table owner
530 tell the client at the same table with proxyserver to disconnect, don't tell people in the same hall to update the status (update the 520 protocol when someone leaves)
532 tell proxyserver to disable proxy

Client Protocol
501 login request
503 send chat information to the server by Hall
505 send chat information to the server by desk
511 leave Hall (originally hallnumber = 0)
513 join Hall (originally hallnumber> 0)
515 join desk
519 leave desk
521 someone is OK
525 after receiving deskisok, the proxy server (the last isok person) notifies the primary server that the proxy has been established and can start listening.
527 listen on the successful establishment of proxyserver (from other clients of the table) or receive all proxyclients (from proxyserver) of the table)
529 card board ends proxyserver send score
531 the client notifies the server that proxy has been disabled.
533 notify proxyserver that the master server proxy has been disabled

Proxy Protocol
602 receive test information
604 Licensing
606 send call Information
608 determine the name ends and send contract, banker
After playing the first card in 610, send the first card (first attack) to the opponent of the banker/banker: 13 cards of the mingshou; and 13 cards of the banker
612 send other 53 cards
614 send the winner of each round
616 send winners and scores for each board
618 invalid name
620 invalid card play
622 scores are calculated when no one calls are made.

Proxy client Protocol
601 send test information
605
609
623 response received score

 

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.