-
Notifications
You must be signed in to change notification settings - Fork 34
Network Protocol
Quentin Bazin edited this page Feb 15, 2020
·
5 revisions
- ID: 0
- Type: TCP
- State: Game
- Sent by: Client
This packet is sent from a client trying to connect to a server.
Field name | Field type | Notes |
---|---|---|
UDP port | u16 |
- ID: 1
- Type: TCP
- State: Game
- Sent by: Client
This packet is sent from a client trying to disconnect from a server.
- ID: 2
- Type: TCP
- State: Game
- Sent by: Server
This packet is sent from a server to tell a client that it has been accepted.
Field name | Field type | Notes |
---|---|---|
Client ID | u16 |
- ID: 3
- Type: TCP
- State: Game
- Sent by: Server
This packet is sent from a server to tell a client that it has been refused.
- ID: 4
- Type: UDP
- State: Game
- Sent by: Client
Field name | Field type | Notes |
---|---|---|
Timestamp | u32 | |
Client ID | u16 | |
Array | ||
- Keycode | u32 | |
- Is key pressed | bool |