* The connection was successfully established. * This socket is fully setup and ready to send/recv game protocol packets. * @param sock The socket of the established connection. */
| 438 | * @param sock The socket of the established connection. |
| 439 | */ |
| 440 | void TCPServerConnecter::SetConnected(SOCKET sock) |
| 441 | { |
| 442 | assert(sock != INVALID_SOCKET); |
| 443 | |
| 444 | this->socket = sock; |
| 445 | this->status = Status::Connected; |
| 446 | } |
| 447 | |
| 448 | /** |
| 449 | * The connection couldn't be established. |