OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
gt2Connection.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_CONNECTION_H_
12#define _GT2_CONNECTION_H_
13
14#include "gt2Main.h"
15
16GT2Result gti2NewOutgoingConnection(GT2Socket socket, GT2Connection * connection, unsigned int ip, unsigned short port);
17GT2Result gti2NewIncomingConnection(GT2Socket socket, GT2Connection * connection, unsigned int ip, unsigned short port);
18
19GT2Result gti2StartConnectionAttempt
20(
21 GT2Connection connection,
22 const GT2Byte * message,
23 int len,
24 GT2ConnectionCallbacks * callbacks
25);
26
27GT2Bool gti2AcceptConnection(GT2Connection connection, GT2ConnectionCallbacks * callbacks);
28
29void gti2RejectConnection(GT2Connection connection, const GT2Byte * message, int len);
30
31GT2Bool gti2ConnectionSendData(GT2Connection connection, const GT2Byte * message, int len);
32
33GT2Bool gti2ConnectionThink(GT2Connection connection, gsi_time now);
34
35void gti2CloseConnection(GT2Connection connection, GT2Bool hard);
36
37void gti2ConnectionClosed(GT2Connection connection);
38
39void gti2ConnectionCleanup(GT2Connection connection);
40
41#endif
Definition gt2.h:230