#include <internal.h>
Public Member Functions | |
DISABLE_CLASS_COPY (ConnectionCommand) | |
Static Public Member Functions | |
static ConnectionCommandPtr | serve (Address address) |
static ConnectionCommandPtr | connect (Address address) |
static ConnectionCommandPtr | disconnect () |
static ConnectionCommandPtr | disconnect_peer (session_t peer_id) |
static ConnectionCommandPtr | resend_one (session_t peer_id) |
static ConnectionCommandPtr | send (session_t peer_id, u8 channelnum, NetworkPacket *pkt, bool reliable) |
static ConnectionCommandPtr | ack (session_t peer_id, u8 channelnum, const Buffer< u8 > &data) |
static ConnectionCommandPtr | createPeer (session_t peer_id, const Buffer< u8 > &data) |
Public Attributes | |
const ConnectionCommandType | type |
Address | address |
session_t | peer_id = PEER_ID_INEXISTENT |
u8 | channelnum = 0 |
Buffer< u8 > | data |
bool | reliable = false |
bool | raw = false |
Private Member Functions | |
ConnectionCommand (ConnectionCommandType type_) | |
Static Private Member Functions | |
static ConnectionCommandPtr | create (ConnectionCommandType type) |
|
inlineprivate |
|
static |
References channelnum, con::CONCMD_ACK, Buffer< T >::copyTo(), create(), data, and peer_id.
Referenced by con::Connection::sendAck().
|
static |
References address, con::CONNCMD_CONNECT, and create().
Referenced by con::Connection::Connect().
|
staticprivate |
References ConnectionCommand(), and type.
Referenced by ack(), connect(), createPeer(), disconnect(), disconnect_peer(), resend_one(), send(), and serve().
|
static |
References con::CONCMD_CREATE_PEER, Buffer< T >::copyTo(), create(), data, and peer_id.
Referenced by con::Connection::createPeer().
con::ConnectionCommand::DISABLE_CLASS_COPY | ( | ConnectionCommand | ) |
|
static |
References con::CONNCMD_DISCONNECT, and create().
Referenced by con::Connection::Disconnect().
|
static |
References con::CONNCMD_DISCONNECT_PEER, create(), and peer_id.
Referenced by con::Connection::DisconnectPeer(), and con::ConnectionReceiveThread::handlePacketType_Reliable().
|
static |
References con::CONNCMD_RESEND_ONE, create(), and peer_id.
Referenced by con::Connection::doResendOne().
|
static |
References channelnum, con::CONNCMD_SEND, create(), NetworkPacket::oldForgePacket(), peer_id, and reliable.
Referenced by con::Connection::Send().
|
static |
References address, con::CONNCMD_SERVE, and create().
Referenced by con::Connection::Serve().
Address con::ConnectionCommand::address |
Referenced by connect(), con::ConnectionSendThread::processNonReliableCommand(), and serve().
u8 con::ConnectionCommand::channelnum = 0 |
Referenced by ack(), con::ConnectionSendThread::processNonReliableCommand(), and send().
Buffer<u8> con::ConnectionCommand::data |
Referenced by ack(), createPeer(), and con::ConnectionSendThread::processNonReliableCommand().
session_t con::ConnectionCommand::peer_id = PEER_ID_INEXISTENT |
Referenced by ack(), createPeer(), disconnect_peer(), con::ConnectionSendThread::processNonReliableCommand(), resend_one(), and send().
bool con::ConnectionCommand::raw = false |
bool con::ConnectionCommand::reliable = false |
Referenced by con::ConnectionSendThread::processNonReliableCommand(), and send().
const ConnectionCommandType con::ConnectionCommand::type |
Referenced by create(), and con::ConnectionSendThread::processNonReliableCommand().