int GetConnection()
int i = GetConnection(); if (socket_count < SOCKET_MAX_COUNT) { socket[socket_count] = i; SocketSendString(i, "RPL_CONNECTIONOK"); Log("A new client connected via socket "+str(i)); socket_count++; } else { SocketSendString(i, "ERR_SERVERFULL"); Log("Socket "+ str(i) +" was refused a connection, because the server's full."); SocketClose(i); }
There are no talkbacks on this documentation page yet. Post the first?
Doc Nav |
Your docs |