Nuclide
Software Development Kit for id Tech
|
Functions | |
int | TCP_Connect (tcpinfo_t *in, string path) |
Open a TCP socket connection. More... | |
void | TCP_Disconnect (tcpinfo_t *in) |
Closes a TCP socket connection. More... | |
int | TCP_Send (tcpinfo_t *in, string msg) |
Send a string buffer to a specified TCP connection. More... | |
string | TCP_Receive (tcpinfo_t *in) |
Receive the latest message from a TCP connection. More... | |
void | TCP_Frame (tcpinfo_t *in) |
You want to run this every frame. More... | |
tcpstate_t | TCP_GetState (tcpinfo_t *in) |
Returns the tcpstate_t of a connection. More... | |
Open a TCP socket connection.
in | Pointer to a tcpinfo_t struct to save state into. |
path | The address:port to which we should connect to. |
Closes a TCP socket connection.
@parm in Pointer to a tcpinfo_t that is to be closed.
You want to run this every frame.
in | Pointer to an active TCP connection. |
tcpstate_t TCP_GetState | ( | tcpinfo_t * | in | ) |
Returns the tcpstate_t of a connection.
in | Pointer to an active TCP connection. |
Receive the latest message from a TCP connection.
in | Pointer to an active TCP connection. |