FS2_Open
Open source remastering of the Freespace 2 engine
tcp_socket.h
Go to the documentation of this file.
1 // TCP_Socket.h
2 // TCP_Socket for FS2Open PXO
3 // Derek Meek
4 // 2-14-2003
5 
6 // ############## ATTENTION ##########
7 // Licensed under the Academic Free License version 2.0
8 // View License at http://www.opensource.org/licenses/afl-2.0.php
9 // ###################################
10 
11 
12 
13 
14 #if !defined(__TCP_SOCKET_H_)
15 #define __TCP_SOCKET_H_
16 
17 #include "globalincs/pstypes.h" // make sure _cdecl is defined correctly on *nix
18 
19 
20 int FS2NetD_ConnectToServer(const char *host, const char *port);
21 void FS2NetD_Disconnect();
22 
23 int FS2NetD_GetData(char *buffer, int blen);
24 int FS2NetD_SendData(char *buffer, int blen);
25 bool FS2NetD_DataReady();
26 
27 
28 #endif // __TCP_SOCKET_H_
int FS2NetD_GetData(char *buffer, int blen)
Definition: tcp_socket.cpp:224
int FS2NetD_SendData(char *buffer, int blen)
Definition: tcp_socket.cpp:236
int FS2NetD_ConnectToServer(const char *host, const char *port)
Definition: tcp_socket.cpp:62
bool FS2NetD_DataReady()
Definition: tcp_socket.cpp:245
GLuint buffer
Definition: Glext.h:5492
void FS2NetD_Disconnect()
Definition: tcp_socket.cpp:50