|
Revision 32, 1.2 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 <cassert> |
|---|
| 8 |
|
|---|
| 9 |
#ifndef _RAKCLIENT_ |
|---|
| 10 |
#define _RAKCLIENT_ |
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
extern "C" { |
|---|
| 14 |
|
|---|
| 15 |
bool isRakClientInterface(); |
|---|
| 16 |
|
|---|
| 17 |
void rakClientInterface_Initialize(); |
|---|
| 18 |
|
|---|
| 19 |
bool rakClientInterface_Connect(char *host, unsigned short serverPort, unsigned short clientPort, unsigned long connectionValidationInteger, int threadSleepTimer); |
|---|
| 20 |
|
|---|
| 21 |
bool rakClientInterface_RPC(char *uniqueID, char *data, unsigned long bitLength, PacketPriority priority, PacketReliability reliability, char orderingChannel, bool shiftTimestamp); |
|---|
| 22 |
|
|---|
| 23 |
void rakClientInterface_DeallocatePacket(Packet *); |
|---|
| 24 |
|
|---|
| 25 |
Packet* rakClientInterface_ReceivePacket(); |
|---|
| 26 |
|
|---|
| 27 |
void RakClientInterface_Destroy(); |
|---|
| 28 |
|
|---|
| 29 |
void rakClientInterface_REG_AS_RPC(char* uniqueID, void ( *functionName ) ( char *input, int numberOfBitsOfData, PlayerID sender )); |
|---|
| 30 |
|
|---|
| 31 |
void rakClientInterface_Disconnect (unsigned blockDuration); |
|---|
| 32 |
bool rakClientInterface_SendBitstream(PacketPriority priority, PacketReliability reliability, char orderingChannel); |
|---|
| 33 |
|
|---|
| 34 |
PlayerID rakClientInterface_GetPlayerID(); |
|---|
| 35 |
|
|---|
| 36 |
} |
|---|
| 37 |
|
|---|
| 38 |
#endif |
|---|