#include <internal.h>
Collaboration diagram for con::ConnectionCommand: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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References address, con::CONNCMD_CONNECT, and create().
Referenced by con::Connection::Connect().
Here is the call graph for this function:
Here is the caller graph for this function:
|
staticprivate |
References ConnectionCommand(), and type.
Referenced by ack(), connect(), createPeer(), disconnect(), disconnect_peer(), resend_one(), send(), and serve().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References con::CONCMD_CREATE_PEER, Buffer< T >::copyTo(), create(), data, and peer_id.
Referenced by con::Connection::createPeer().
Here is the call graph for this function:
Here is the caller graph for this function:| con::ConnectionCommand::DISABLE_CLASS_COPY | ( | ConnectionCommand | ) |
|
static |
References con::CONNCMD_DISCONNECT, and create().
Referenced by con::Connection::Disconnect().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References con::CONNCMD_DISCONNECT_PEER, create(), and peer_id.
Referenced by con::Connection::DisconnectPeer(), and con::ConnectionReceiveThread::handlePacketType_Reliable().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References con::CONNCMD_RESEND_ONE, create(), and peer_id.
Referenced by con::Connection::doResendOne().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References channelnum, con::CONNCMD_SEND, create(), NetworkPacket::oldForgePacket(), peer_id, and reliable.
Referenced by con::Connection::Send().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References address, con::CONNCMD_SERVE, and create().
Referenced by con::Connection::Serve().
Here is the call graph for this function:
Here is the caller graph for this function:| 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().