32#define TCP_BUFFER_LENGTH 32
#define filestream
Definition: fteextensions.qc:271
filestream m_fSocket
Definition: tcp.h:44
tcpstate_t m_iState
Definition: tcp.h:47
int m_iBufferLines
Definition: tcp.h:46
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:36
@ STATE_CONNECTING
We're in the process of connecting.
Definition: tcp.h:38
@ STATE_DISCONNECTED
We're disconnected/unconnected.
Definition: tcp.h:37
@ STATE_CONNECTED
We're fully connected.
Definition: tcp.h:39
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:32
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