ScummVM API documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
net_defines.h
1 /* ScummVM - Graphic Adventure Engine
2  *
3  * ScummVM is the legal property of its developers, whose names
4  * are too numerous to list here. Please refer to the COPYRIGHT
5  * file distributed with this source distribution.
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation, either version 3 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program. If not, see <http://www.gnu.org/licenses/>.
19  *
20  */
21 
22 #ifndef SCUMM_HE_NET_DEFINES_H
23 #define SCUMM_HE_NET_DEFINES_H
24 
25 namespace Scumm {
26 
27 // The version number of the network protocol. Users
28 // will be matched with the defined when hosting and joining
29 // games. Meaning it will not find users that are using
30 // a different version. This is done to ensure that
31 // people are playing with the same netcode as the hosts.
32 #define NETWORK_VERSION "1.1"
33 
34 // pnetwin.h
35 
36 #define PN_PRIORITY_HIGH 0x00000001
37 
38 #define PN_SENDTYPE_INDIVIDUAL 1
39 #define PN_SENDTYPE_GROUP 2
40 #define PN_SENDTYPE_HOST 3
41 #define PN_SENDTYPE_ALL 4
42 #define PN_SENDTYPE_ALL_RELIABLE 14
43 #define PN_SENDTYPE_ALL_RELIABLE_TIMED 24
44 
45 #define MAX_GAME_NAME 128 /* Used for the multiplayer networking code */
46 #define MAX_PLAYER_NAME 128 /* Used for the multiplayer networking code */
47 #define MAX_PROVIDER_NAME 128
48 #define MAX_SESSION_NAME 128
49 
50 #define MAX_GAMES_POLLED 16
51 #define MAX_PROVIDERS 16
52 
53 #define PACKETTYPE_REMOTESTARTSCRIPT 1
54 #define PACKETTYPE_REMOTESTARTSCRIPTRETURN 2
55 #define PACKETTYPE_REMOTESTARTSCRIPTRESULT 3
56 #define PACKETTYPE_REMOTESENDSCUMMARRAY 4
57 
58 const int MAX_PACKET_SIZE = 4096; // bytes
59 const int MAX_HOSTNAME_SIZE = 256;
60 const int MAX_IP_SIZE = 32;
61 
62 } // End of namespace Scumm
63 
64 #endif
Definition: actor.h:30