The connection structure. More...
#include <unified_network.h>
Public Member Functions | |
| TConnection () | |
| TConnection (CCallbackClient *cbc) | |
| TConnection (CCallbackNetBase *cbnb, TSockId hi) | |
| void | setAppId (uint64 appid) |
| uint64 | getAppId () |
| bool | valid () |
| void | reset () |
Public Attributes | |
| bool | IsServerConnection |
| If the current service is connect to the other service as a server or a client. | |
| CCallbackNetBase * | CbNetBase |
| If it s a client connection, it's the client connection otherwise it s the server connection. | |
| TSockId | HostId |
| If it s a server connection, it's the host id, it s InvalidId if it s a client. | |
The connection structure.
Definition at line 466 of file unified_network.h.
| NLNET::CUnifiedNetwork::CUnifiedConnection::TConnection::TConnection | ( | ) | [inline] |
Definition at line 475 of file unified_network.h.
| NLNET::CUnifiedNetwork::CUnifiedConnection::TConnection::TConnection | ( | CCallbackClient * | cbc | ) | [inline] |
Definition at line 476 of file unified_network.h.
| NLNET::CUnifiedNetwork::CUnifiedConnection::TConnection::TConnection | ( | CCallbackNetBase * | cbnb, | |
| TSockId | hi | |||
| ) | [inline] |
Definition at line 477 of file unified_network.h.
| uint64 NLNET::CUnifiedNetwork::CUnifiedConnection::TConnection::getAppId | ( | ) | [inline] |
Definition at line 480 of file unified_network.h.
References NLNET::CBufSock::appId(), CbNetBase, NLNET::CCallbackNetBase::getSockId(), and HostId.
| void NLNET::CUnifiedNetwork::CUnifiedConnection::TConnection::reset | ( | ) | [inline] |
Definition at line 490 of file unified_network.h.
References CbNetBase, NLNET::CCallbackNetBase::disconnect(), HostId, NLNET::InvalidSockId, and IsServerConnection.
| void NLNET::CUnifiedNetwork::CUnifiedConnection::TConnection::setAppId | ( | uint64 | appid | ) | [inline] |
Definition at line 479 of file unified_network.h.
References CbNetBase, NLNET::CCallbackNetBase::getSockId(), HostId, and NLNET::CBufSock::setAppId().
| bool NLNET::CUnifiedNetwork::CUnifiedConnection::TConnection::valid | ( | ) | [inline] |
Definition at line 482 of file unified_network.h.
References CbNetBase, HostId, NLNET::InvalidSockId, and IsServerConnection.
If it s a client connection, it's the client connection otherwise it s the server connection.
Definition at line 471 of file unified_network.h.
Referenced by getAppId(), reset(), setAppId(), and valid().
If it s a server connection, it's the host id, it s InvalidId if it s a client.
Definition at line 473 of file unified_network.h.
Referenced by getAppId(), reset(), setAppId(), and valid().
If the current service is connect to the other service as a server or a client.
Definition at line 469 of file unified_network.h.
1.6.1