Difference between revisions of "Network Protocol/QUIT"

From Custom Mario Kart
Jump to navigation Jump to search
m
m
Line 1: Line 1:
This pages is related to [[MKWii Network Protocol]] and describes the record type '''QUIT'''.
+
This page is related to [[MKWii Network Protocol]] and describes the record type '''QUIT'''.
  
Every time a client (1 or 2 users of a Wii) leaves a room or race, it sends to all other active clients the QUIT message. A QUIT message is a simple 3 bytes long packet: '''fe fe 68'''
+
Every time a client (1 or 2 users of a Wii) leaves a room or race, it sends the QUIT message to all other active clients. A QUIT message is a simple 3-byte long packet: '''fe fe 68'''
  
;Notes after some observations:
+
;Notes after some observations:
* QUIT is used, if you leave a room or between global races.
+
* QUIT is used if you leave a room or between global races.
* If switching the Wii off by using the Wiimote, QUIT messages are also send.
+
* If switching the Wii off by using the Wii Remote, QUIT messages are also sent.
* After sending QUIT to all other clients, MKW waits a little bit. If more packets arrive, that a new QUIT message is send for each arrived packet.
+
* After sending QUIT to all other clients, MKW waits for a little bit. If more packets arrive, then a new QUIT message is sent for each arrived packet.
* A QUIT message is also send as acknowledge for a received QUIT. So, it does not mean "I quit the race", but "I close the connection to you".  
+
* A QUIT message is also sent as acknowledgement for a received QUIT. So it does not mean "I quit the race", but "I close the connection to you".  
  
 
<br/>
 
<br/>
 
{{MKWii Network Protocol}}
 
{{MKWii Network Protocol}}
 
[[category: Network Protocol|Q]]
 
[[category: Network Protocol|Q]]

Revision as of 21:58, 25 December 2022

This page is related to MKWii Network Protocol and describes the record type QUIT.

Every time a client (1 or 2 users of a Wii) leaves a room or race, it sends the QUIT message to all other active clients. A QUIT message is a simple 3-byte long packet: fe fe 68

Notes after some observations:
  • QUIT is used if you leave a room or between global races.
  • If switching the Wii off by using the Wii Remote, QUIT messages are also sent.
  • After sending QUIT to all other clients, MKW waits for a little bit. If more packets arrive, then a new QUIT message is sent for each arrived packet.
  • A QUIT message is also sent as acknowledgement for a received QUIT. So it does not mean "I quit the race", but "I close the connection to you".


Template:MKWii Network Protocol