36#define TCP_BUFFER_LENGTH 32
int TCP_Send(tcpinfo_t *in, string msg)
Send a string buffer to a specified TCP connection.
Definition: tcp.qc:44
tcpstate_t
State of a TCP connection.
Definition: tcp.h:40
tcpstate_t TCP_GetState(tcpinfo_t *in)
Returns the tcpstate_t of a connection.
Definition: tcp.qc:113
#define TCP_BUFFER_LENGTH
Definition: tcp.h:36
int TCP_Connect(tcpinfo_t *in, string path)
Open a TCP socket connection.
Definition: tcp.qc:18
void TCP_Frame(tcpinfo_t *in)
You want to run this every frame.
Definition: tcp.qc:74
string TCP_Receive(tcpinfo_t *in)
Receive the latest message from a TCP connection.
Definition: tcp.qc:63
void TCP_Disconnect(tcpinfo_t *in)
Closes a TCP socket connection.
Definition: tcp.qc:33
@ STATE_CONNECTING
We're in the process of connecting.
Definition: tcp.h:42
@ STATE_DISCONNECTED
We're disconnected/unconnected.
Definition: tcp.h:41
@ STATE_CONNECTED
We're fully connected.
Definition: tcp.h:43
filestream m_fSocket
Definition: tcp.h:48
tcpstate_t m_iState
Definition: tcp.h:51
int m_iBufferLines
Definition: tcp.h:50