PgePacket is the carrier of information over the network.
It always contains at least 1 message i.e. a pge_network struct starting with name Msg, since messages cannot be sent on their own over the network. Whenever we want to send data between server and clients, we put the message into a PgePacket instance and pass it to PgeIServerClient::send(), the receiver will be notified about the arrival of this PgePacket instance and can extract the message from it.
Definition at line 208 of file PgePacket.h.
|
static PgePktId & | getPacketId (pge_network::PgePacket &pkt) |
|
static const PgePktId & | getPacketId (const pge_network::PgePacket &pkt) |
|
static PgeNetworkConnectionHandle & | getServerSideConnectionHandle (pge_network::PgePacket &pkt) |
|
static const PgeNetworkConnectionHandle & | getServerSideConnectionHandle (const pge_network::PgePacket &pkt) |
|
static MsgUserConnectedServerSelf & | getMessageAsUserConnected (pge_network::PgePacket &pkt) |
|
static const MsgUserConnectedServerSelf & | getMessageAsUserConnected (const pge_network::PgePacket &pkt) |
|
static MsgUserDisconnectedFromServer & | getMessageAsUserDisconnected (pge_network::PgePacket &pkt) |
|
static const MsgUserDisconnectedFromServer & | getMessageAsUserDisconnected (const pge_network::PgePacket &pkt) |
|
static MsgClientAppVersionFromClient & | getMessageAsClientAppVersionFromClient (pge_network::PgePacket &pkt) |
|
static const MsgClientAppVersionFromClient & | getMessageAsClientAppVersionFromClient (const pge_network::PgePacket &pkt) |
|
static const uint8_t & | getMessageAppCount (const pge_network::PgePacket &pkt) |
|
static const MsgAppArea::TAreaLength & | getMessageAppsTotalActualLengthBytes (const pge_network::PgePacket &pkt) |
|
static bool | isMessageAppAreaFull (const pge_network::PgePacket &pkt) |
|
static const pge_network::MsgApp * | getMsgAppFromPkt (const pge_network::PgePacket &pkt) |
|
static pge_network::MsgApp * | PgePacket::getMsgAppFromPkt (pge_network::PgePacket &pkt) |
|
static const pge_network::MsgApp::TMsgId & | getMsgAppIdFromPkt (const pge_network::PgePacket &pkt) |
|
template<class MsgAppDataType > |
static const MsgAppDataType & | getMsgAppDataFromPkt (const pge_network::PgePacket &pkt) |
| This convenient function is for the application: the custom application-defined message can be easily extracted from the packet.
|
|
template<class MsgAppDataType > |
static MsgAppDataType & | getMsgAppDataFromPkt (pge_network::PgePacket &pkt) |
| This convenient function is for the application: the custom application-defined message can be easily extracted from the packet.
|
|
static bool | initPktPgeMsgUserConnected (pge_network::PgePacket &pkt, const pge_network::PgeNetworkConnectionHandle &connHandleServerSide, bool bCurrentClient, const std::string &sIpAddress) |
|
static void | initPktPgeMsgUserDisconnected (PgePacket &pkt, const PgeNetworkConnectionHandle &connHandleServerSide) |
|
static bool | initPktPgeMsgClientAppVersionFromClient (pge_network::PgePacket &pkt, const std::string &sClientAppVersion) |
|
static void | initPktMsgApp (pge_network::PgePacket &pkt, const pge_network::PgeNetworkConnectionHandle &connHandleServerSide, const AutoFill &autoFill=AutoFill::ZERO) |
|
static bool | addPktMsgApp (pge_network::PgePacket &pkt, const pge_network::MsgApp &msgApp) |
|
static TByte * | preparePktMsgAppFill (pge_network::PgePacket &pkt, MsgApp::TMsgId msgAppId, MsgApp::TMsgSize nMsgAppDataSize) |
|