![]() |
DDNet documentation
|
#include <network.h>
Public Types | |
| enum class | EState { OFFLINE , ONLINE , ERROR } |
Public Member Functions | |
| int | Init (NETSOCKET Socket, const NETADDR *pAddr) |
| void | Disconnect (const char *pReason) |
| EState | State () const |
| const NETADDR * | PeerAddress () const |
| const std::array< char, NETADDR_MAXSTRSIZE > & | PeerAddressString () const |
| const char * | ErrorString () const |
| void | Reset () |
| int | Update () |
| int | Send (const char *pLine) |
| int | Recv (char *pLine, int MaxLength) |
Private Member Functions | |
| void | SetPeerAddr (const NETADDR *pAddr) |
| void | ClearPeerAddr () |
Private Attributes | |
| EState | m_State |
| NETADDR | m_PeerAddr |
| std::array< char, NETADDR_MAXSTRSIZE > | m_aPeerAddrStr |
| NETSOCKET | m_Socket |
| char | m_aBuffer [NET_MAX_PACKETSIZE] |
| int | m_BufferOffset |
| char | m_aErrorString [256] |
| bool | m_LineEndingDetected |
| char | m_aLineEnding [3] |
|
strong |
|
private |
| void CConsoleNetConnection::Disconnect | ( | const char * | pReason | ) |
|
inline |
|
inline |
|
inline |
| int CConsoleNetConnection::Recv | ( | char * | pLine, |
| int | MaxLength ) |
| void CConsoleNetConnection::Reset | ( | ) |
| int CConsoleNetConnection::Send | ( | const char * | pLine | ) |
|
private |
|
inline |
| int CConsoleNetConnection::Update | ( | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |