OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
gt2Message.h
1/*
2GameSpy GT2 SDK
3Dan "Mr. Pants" Schoenblum
4dan@gamespy.com
5
6Copyright 2002 GameSpy Industries, Inc
7
8devsupport@gamespy.com
9*/
10
11#ifndef _GT2_MESSAGE_H_
12#define _GT2_MESSAGE_H_
13
14#include "gt2Main.h"
15
16GT2Bool gti2ReceiveMessages(GT2Socket socket);
17
18GT2Bool gti2Send(GT2Connection connection, const GT2Byte * message, int len, GT2Bool reliable);
19
20GT2Bool gti2SendAppReliable(GT2Connection connection, const GT2Byte * message, int len);
21GT2Bool gti2SendAppUnreliable(GT2Connection connection, const GT2Byte * message, int len);
22GT2Bool gti2SendClientChallenge(GT2Connection connection, const char challenge[GTI2_CHALLENGE_LEN]);
23GT2Bool gti2SendServerChallenge(GT2Connection connection, const char response[GTI2_RESPONSE_LEN], const char challenge[GTI2_CHALLENGE_LEN]);
24GT2Bool gti2SendClientResponse(GT2Connection connection, const char response[GTI2_RESPONSE_LEN], const char * message, int len);
25GT2Bool gti2SendAccept(GT2Connection connection);
26GT2Bool gti2SendReject(GT2Connection connection, const GT2Byte * message, int len);
27GT2Bool gti2SendClose(GT2Connection connection);
28GT2Bool gti2SendKeepAlive(GT2Connection connection);
29GT2Bool gti2SendAck(GT2Connection connection);
30GT2Bool gti2SendNack(GT2Connection connection, unsigned short SNMin, unsigned short SNMax);
31GT2Bool gti2SendPing(GT2Connection connection);
32GT2Bool gti2SendPong(GT2Connection connection, GT2Byte * message, int len);
33GT2Bool gti2SendClosed(GT2Connection connection);
34GT2Bool gti2SendClosedOnSocket(GT2Socket socket, unsigned int ip, unsigned short port);
35
36GT2Bool gti2ResendMessage(GT2Connection connection, GTI2OutgoingBufferMessage * message);
37
38GT2Bool gti2HandleConnectionReset(GT2Socket socket, unsigned int ip, unsigned short port);
39GT2Bool gti2HandleHostUnreachable(GT2Socket socket, unsigned int ip, unsigned short port, GT2Bool send);
40GT2Bool gti2WasMessageIDConfirmed(const GT2Connection connection, GT2MessageID messageID);
41
42#endif
Definition gt2Main.h:155