OpenTTD Source: TCPClientConnecter Class Reference

OpenTTD Source 1.11.0-RC1

Public Member Functions
TCPClientConnecter Class Reference

Non blocking connection create to actually connect to servers. More...

Inheritance diagram for TCPClientConnecter:

## Public Member Functions
| TCPClientConnecter (const NetworkAddress &address)
void | OnFailure () override
| Callback for when the connection attempt failed.
void | OnConnect (SOCKET s) override
| Callback when the connection succeeded. More...

## Additional Inherited Members
Private Member Functions inherited from TCPConnecter
| TCPConnecter (const NetworkAddress &address)
| Create a new connecter for the given address. More...
virtual | ~TCPConnecter ()
| Silence the warnings.
Static Private Member Functions inherited from TCPConnecter
static void | CheckCallbacks ()
| Check whether we need to call the callback, i.e. More...
static void | KillAll ()
| Kill all connection attempts.
Private Attributes inherited from TCPConnecter
NetworkAddress | address
| Address we're connecting to.

## Detailed Description

Non blocking connection create to actually connect to servers.

Definition at line 648 of file network.cpp.

## Member Function Documentation

## ◆ OnConnect()

void TCPClientConnecter::OnConnect | ( | SOCKET | s | ) |
| inlineoverridevirtual

Callback when the connection succeeded.

Parameters

  s | the socket that we opened

Reimplemented from TCPConnecter.

Definition at line 657 of file network.cpp.

References _networking, IConsoleCmdExec(), and NetworkClient_Connected().

The documentation for this class was generated from the following file:

- src/network/network.cpp