int SocketGetString(int socket)
Attempts to retrieve a string from the given socket. Useful in conjunction with SocketHasData(). You will want a create parser to interpret incoming string commands and reply according to each command.
string s; if (SocketHasData(server_sock)) { s = SocketGetString(server_sock); ParseCommand(s); }
There are no talkbacks on this documentation page yet. Post the first?
Doc Nav |
Your docs |