#include <impl.h>
Public Member Functions | |
DISABLE_CLASS_COPY (ConnectionEvent) | |
const char * | describe () const |
Static Public Member Functions | |
static ConnectionEventPtr | create (ConnectionEventType type) |
static ConnectionEventPtr | dataReceived (session_t peer_id, const Buffer< u8 > &data) |
static ConnectionEventPtr | peerAdded (session_t peer_id, Address address) |
static ConnectionEventPtr | peerRemoved (session_t peer_id, bool is_timeout, Address address) |
static ConnectionEventPtr | bindFailed () |
Public Attributes | |
const ConnectionEventType | type |
session_t | peer_id = 0 |
Buffer< u8 > | data |
bool | timeout = false |
Address | address |
Private Member Functions | |
ConnectionEvent (ConnectionEventType type_) | |
|
inlineprivate |
|
static |
References con::CONNEVENT_BIND_FAILED, and create().
Referenced by con::ConnectionSendThread::serve().
|
static |
References ConnectionEvent(), and type.
Referenced by bindFailed(), dataReceived(), peerAdded(), peerRemoved(), and con::Connection::waitEvent().
|
static |
References con::CONNEVENT_DATA_RECEIVED, Buffer< T >::copyTo(), create(), data, and peer_id.
Referenced by con::ConnectionReceiveThread::receive().
const char * con::ConnectionEvent::describe | ( | ) | const |
References con::CONNEVENT_BIND_FAILED, con::CONNEVENT_DATA_RECEIVED, con::CONNEVENT_NONE, con::CONNEVENT_PEER_ADDED, con::CONNEVENT_PEER_REMOVED, and type.
Referenced by con::Connection::ReceiveTimeoutMs().
con::ConnectionEvent::DISABLE_CLASS_COPY | ( | ConnectionEvent | ) |
|
static |
References address, con::CONNEVENT_PEER_ADDED, create(), and peer_id.
Referenced by con::ConnectionSendThread::connect(), and con::Connection::createPeer().
|
static |
References address, con::CONNEVENT_PEER_REMOVED, create(), and peer_id.
Referenced by con::Connection::deletePeer().
Address con::ConnectionEvent::address |
Referenced by peerAdded(), peerRemoved(), and con::Connection::ReceiveTimeoutMs().
Buffer<u8> con::ConnectionEvent::data |
Referenced by dataReceived(), and con::Connection::ReceiveTimeoutMs().
session_t con::ConnectionEvent::peer_id = 0 |
Referenced by dataReceived(), peerAdded(), peerRemoved(), and con::Connection::ReceiveTimeoutMs().
bool con::ConnectionEvent::timeout = false |
Referenced by con::Connection::ReceiveTimeoutMs().
const ConnectionEventType con::ConnectionEvent::type |
Referenced by create(), describe(), and con::Connection::ReceiveTimeoutMs().