root/trunk/raknet/rakglue/rakserver.h

Revision 32, 1.3 kB (checked in by clayasaurus, 6 years ago)

updated raknet to include more functionality

Line 
1 #include <stdio.h> // Printf and gets
2 #include <string.h> // strcpy
3 #include "RakClientInterface.h"
4 #include "RakNetworkFactory.h"
5 #include "RakServerInterface.h"
6 #include "PacketEnumerations.h"
7 #include "NetworkTypes.h"
8 #include <cassert>
9
10 #ifndef _RAKSERVER_
11 #define _RAKSERVER_
12
13 extern "C" {
14
15 bool rakServerInterface_RPC(char *uniqueID, char *data, unsigned long bitLength, PacketPriority priority, PacketReliability reliability, char orderingChannel, PlayerID playerId, bool broadcast, bool shiftTimestamp);
16
17 bool rakServerInterface_Start(unsigned short AllowedPlayers, unsigned long connectionValidationInteger, int threadSleepTimer, unsigned short port);
18
19 void rakServerInterface_Initialize();
20
21 void rakServerInterface_REG_AS_RPC(char* uniqueID, void ( *functionName ) ( char *input, int numberOfBitsOfData, PlayerID sender ));
22
23 // C interface to raknet
24 bool isRakServerInterface();
25
26 Packet* rakServerInterface_ReceivePacket();
27
28 void rakServerInterface_DeallocatePacket(Packet *);
29
30
31 void RakServerInterface_Destroy();
32
33 bool rakServerInterface_SendBitstream(PacketPriority priority, PacketReliability reliability, char orderingChannel, PlayerID playerId, bool broadcast);
34
35 void rakServerInterface_Disconnect( unsigned blockDuration );
36
37 int rakServerInterface_GetIndexFromPlayerID(PlayerID pid);
38 }
39
40 #endif
Note: See TracBrowser for help on using the browser.