MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / SetConnected

Method SetConnected

src/network/core/tcp_connect.cpp:440–446  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

438 * @param sock The socket of the established connection.
439 */
440void 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.

Callers 1

ConnectSuccessMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected