DDraceNetwork Documentation
Loading...
Searching...
No Matches
protocol7.h
Go to the documentation of this file.
1/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2/* If you are missing that file, acquire a complete release at teeworlds.com. */
3#ifndef ENGINE_SHARED_PROTOCOL7_H
4#define ENGINE_SHARED_PROTOCOL7_H
5
6#include <base/types.h>
7
8namespace protocol7 {
9
10enum
11{
13
14 // the first thing sent by the client
15 // contains the version info for the client
17
18 // sent by server
19 NETMSG_MAP_CHANGE, // sent when client should switch map
20 NETMSG_MAP_DATA, // map transfer, contains a chunk of the map file
22 NETMSG_CON_READY, // connection is ready, client should send start info
23 NETMSG_SNAP, // normal snapshot, multiple parts
24 NETMSG_SNAPEMPTY, // empty snapshot
27 NETMSG_INPUTTIMING, // reports how off the input was
28 NETMSG_RCON_AUTH_ON, // rcon authentication enabled
29 NETMSG_RCON_AUTH_OFF, // rcon authentication disabled
30 NETMSG_RCON_LINE, // line that should be printed to the remote console
33
36
37 // sent by client
40 NETMSG_INPUT, // contains the inputdata from the client
44
47
48 // sent by both
52
53 NETMSG_MAPLIST_ENTRY_ADD, // todo 0.8: move up
55
61};
62
63enum
64{
71};
72
73} // namespace protocol7
74
75#endif
Definition protocol7.h:8
@ NETMSG_READY
Definition protocol7.h:38
@ NETMSG_NULL
Definition protocol7.h:12
@ NETMSG_INPUT
Definition protocol7.h:40
@ NETMSG_RCON_AUTH_ON
Definition protocol7.h:28
@ NETMSG_SNAP
Definition protocol7.h:23
@ NETMSG_SNAPSINGLE
Definition protocol7.h:25
@ NETMSG_SNAPSMALL
Definition protocol7.h:26
@ NETMSG_INFO
Definition protocol7.h:16
@ NETMSG_ENTERGAME
Definition protocol7.h:39
@ NETMSG_MAP_CHANGE
Definition protocol7.h:19
@ NETMSG_SNAPEMPTY
Definition protocol7.h:24
@ NETMSG_MAPLIST_ENTRY_REM
Definition protocol7.h:54
@ NETMSG_MAP_DATA
Definition protocol7.h:20
@ NETMSG_INPUTTIMING
Definition protocol7.h:27
@ NETMSG_REQUEST_MAP_DATA
Definition protocol7.h:43
@ NETMSG_RCON_LINE
Definition protocol7.h:30
@ NETMSG_RCON_CMD_ADD
Definition protocol7.h:31
@ NETMSG_PING
Definition protocol7.h:49
@ NETMSG_PING_REPLY
Definition protocol7.h:50
@ NETMSG_UNUSED1
Definition protocol7.h:34
@ NETMSG_CON_READY
Definition protocol7.h:22
@ NET_CTRLMSG_KEEPALIVE
Definition protocol7.h:56
@ NETMSG_RCON_AUTH
Definition protocol7.h:42
@ NETMSG_UNUSED4
Definition protocol7.h:46
@ NETMSG_UNUSED3
Definition protocol7.h:45
@ NETMSG_UNUSED5
Definition protocol7.h:51
@ NETMSG_RCON_AUTH_OFF
Definition protocol7.h:29
@ NETMSG_RCON_CMD
Definition protocol7.h:41
@ NETMSG_RCON_CMD_REM
Definition protocol7.h:32
@ NETMSG_UNUSED2
Definition protocol7.h:35
@ NET_CTRLMSG_ACCEPT
Definition protocol7.h:58
@ NET_CTRLMSG_CLOSE
Definition protocol7.h:59
@ NETMSG_MAPLIST_ENTRY_ADD
Definition protocol7.h:53
@ NET_CTRLMSG_CONNECT
Definition protocol7.h:57
@ NET_CTRLMSG_TOKEN
Definition protocol7.h:60
@ NETMSG_SERVERINFO
Definition protocol7.h:21
@ MAX_NAME_LENGTH
Definition protocol7.h:65
@ MAX_CLAN_ARRAY_SIZE
Definition protocol7.h:68
@ MAX_SKIN_LENGTH
Definition protocol7.h:69
@ MAX_CLAN_LENGTH
Definition protocol7.h:67
@ MAX_NAME_ARRAY_SIZE
Definition protocol7.h:66
@ MAX_SKIN_ARRAY_SIZE
Definition protocol7.h:70
constexpr auto UTF8_BYTE_LENGTH
Definition types.h:47