FS2_Open
Open source remastering of the Freespace 2 engine
tcp_socket.cpp File Reference
#include "fs2netd/tcp_socket.h"
#include "globalincs/pstypes.h"
#include "network/multi_log.h"
#include <windows.h>
#include <process.h>

Go to the source code of this file.

Typedefs

typedef int socklen_t
 

Functions

void FS2NetD_Disconnect ()
 
int FS2NetD_ConnectToServer (const char *host, const char *port)
 
int FS2NetD_GetData (char *buffer, int blen)
 
int FS2NetD_SendData (char *buffer, int blen)
 
bool FS2NetD_DataReady ()
 

Typedef Documentation

typedef int socklen_t

Definition at line 39 of file tcp_socket.cpp.

Function Documentation

int FS2NetD_ConnectToServer ( const char *  host,
const char *  port 
)

Definition at line 62 of file tcp_socket.cpp.

bool FS2NetD_DataReady ( )

Definition at line 245 of file tcp_socket.cpp.

void FS2NetD_Disconnect ( )

Definition at line 50 of file tcp_socket.cpp.

int FS2NetD_GetData ( char *  buffer,
int  blen 
)

Definition at line 224 of file tcp_socket.cpp.

int FS2NetD_SendData ( char *  buffer,
int  blen 
)

Definition at line 236 of file tcp_socket.cpp.