Difference between revisions of "Wiimmfi/Connection Status"
< Wiimmfi
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | The '''Connection Status''' is a special feature of Wiimmfi. Server [[SV]] collects data from [[GPCM]], [[MS]] | + | The '''Connection Status''' is a special feature of [[Wiimmfi]]. Server [[SV]] collects data from [[GPCM]], [[MS]], [[MASTER]] and [[NATNEG]] and creates 4 bit fields for each room member: |
; LOCAL: A bit is set, if 2 players have the same public IPv4. In this case, both clients use the same LAN and NATNEG is usually not needed. | ; LOCAL: A bit is set, if 2 players have the same public IPv4. In this case, both clients use the same LAN and NATNEG is usually not needed. | ||
− | ; CONNECT: A bit is set, if connection was accepted by the host. In this case sends a " | + | ; CONNECT: A bit is set, if connection was accepted by the host. In this case the hosts sends a "GPCM STATUS type-02" message using server [[GPCM]] or [[MS]] as delivery agent. |
; NN_CON: The [[NATNEG]] server sent a CONNECT message (NATNEG connection finished) to both clients. | ; NN_CON: The [[NATNEG]] server sent a CONNECT message (NATNEG connection finished) to both clients. | ||
; NN_ACK: The [[NATNEG]] server received a CONNECT_ACK message of a client. This is the only not symmetric bit field. | ; NN_ACK: The [[NATNEG]] server received a CONNECT_ACK message of a client. This is the only not symmetric bit field. | ||
The slot index is used for the bit number. If for example players at slot 2 and 5 did NATNEG, then bit 5 for player 2 and bit 2 for player 5 are set. | The slot index is used for the bit number. If for example players at slot 2 and 5 did NATNEG, then bit 5 for player 2 and bit 2 for player 5 are set. | ||
− | Server [[SV]] and [[mkw-ana]] print a summary as character vector. The following table | + | Server [[SV]] and [[mkw-ana]] print a summary as character vector. The following table shows the character and color selection, highest priority first: |
{| class="textbox alt grid headline" | {| class="textbox alt grid headline" | ||
Line 15: | Line 15: | ||
| align=center | A || cyan || NN_ACK and CONNECT set. LOCAL is ignored. | | align=center | A || cyan || NN_ACK and CONNECT set. LOCAL is ignored. | ||
|- | |- | ||
− | | align=center | a || | + | | align=center | a || cyan || NN_ACK set, but not CONNECT. LOCAL is ignored. |
|- | |- | ||
| align=center | N || yellow || NN_CON and CONNECT set, but not NN_ACK. LOCAL is ignored. | | align=center | N || yellow || NN_CON and CONNECT set, but not NN_ACK. LOCAL is ignored. | ||
Line 30: | Line 30: | ||
|} | |} | ||
− | ''' | + | '''Example:''' |
− | [[File:connection-status-examples.png| | + | [[File:connection-status-examples.png|226px]] |
[[category:Wiimmfi|C]] | [[category:Wiimmfi|C]] |
Revision as of 09:14, 24 September 2016
The Connection Status is a special feature of Wiimmfi. Server SV collects data from GPCM, MS, MASTER and NATNEG and creates 4 bit fields for each room member:
- LOCAL
- A bit is set, if 2 players have the same public IPv4. In this case, both clients use the same LAN and NATNEG is usually not needed.
- CONNECT
- A bit is set, if connection was accepted by the host. In this case the hosts sends a "GPCM STATUS type-02" message using server GPCM or MS as delivery agent.
- NN_CON
- The NATNEG server sent a CONNECT message (NATNEG connection finished) to both clients.
- NN_ACK
- The NATNEG server received a CONNECT_ACK message of a client. This is the only not symmetric bit field.
The slot index is used for the bit number. If for example players at slot 2 and 5 did NATNEG, then bit 5 for player 2 and bit 2 for player 5 are set.
Server SV and mkw-ana print a summary as character vector. The following table shows the character and color selection, highest priority first:
char | color | Description |
---|---|---|
\ | gray | Self reference. All other bits are ignored. |
A | cyan | NN_ACK and CONNECT set. LOCAL is ignored. |
a | cyan | NN_ACK set, but not CONNECT. LOCAL is ignored. |
N | yellow | NN_CON and CONNECT set, but not NN_ACK. LOCAL is ignored. |
n | yellow | NN_CON set, but neither NN_ACK nor CONNECT. LOCAL is ignored. |
L | blue | LOCAL and CONNECT set, but not NATNEG. |
l | blue | LOCAL set, but neither CONNECT nor NATNEG. |
C | magenta | CONNECT set, but neither LOCAL nor NATNEG. |
! | red | Neither NATNEG, nor CONNECT, nor LOCAL is set. |
Example: