11#ifndef _GT2_MESSAGE_H_
12#define _GT2_MESSAGE_H_
16GT2Bool gti2ReceiveMessages(GT2Socket socket);
18GT2Bool gti2Send(GT2Connection connection,
const GT2Byte * message,
int len, GT2Bool reliable);
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);
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);