#include <C4Network2IO.h>
Public Member Functions | |
C4PacketFwd () | |
C4PacketFwd (const StdBuf &Pkt) | |
const StdCopyBuf & | getData () const |
bool | isNegativeList () const |
int32_t | getClient (int32_t i) const |
int32_t | getClientCnt () const |
bool | DoFwdTo (int32_t iClient) const |
void | SetData (const StdBuf &Pkt) |
void | SetListType (bool fnNegativeList) |
void | AddClient (int32_t iClient) |
void | CompileFunc (StdCompiler *pComp) override |
C4NetIOPacket | pack (const C4NetIO::addr_t &addr=C4NetIO::addr_t()) const |
C4NetIOPacket | pack (uint8_t cStatus, const C4NetIO::addr_t &addr=C4NetIO::addr_t()) const |
void | unpack (const C4NetIOPacket &Pkt, char *pStatus=nullptr) |
Protected Attributes | |
bool | fNegativeList {false} |
int32_t | iClients [C4NetMaxClients] |
int32_t | iClientCnt {0} |
StdCopyBuf | Data |
Definition at line 390 of file C4Network2IO.h.
|
default |
C4PacketFwd::C4PacketFwd | ( | const StdBuf & | Pkt | ) |
Definition at line 440 of file C4Packet2.cpp.
void C4PacketFwd::AddClient | ( | int32_t | iClient | ) |
Definition at line 463 of file C4Packet2.cpp.
References C4NetMaxClients, iClientCnt, and iClients.
Referenced by C4Network2ClientList::BroadcastMsgToClients(), C4Network2IO::HandleFwdReq(), and C4Network2ClientList::SendMsgToClient().
|
overridevirtual |
Implements C4PacketBase.
Definition at line 470 of file C4Packet2.cpp.
References Data, fNegativeList, iClientCnt, iClients, mkArrayAdaptMap(), mkIntPackAdapt(), mkNamingAdapt(), and StdCompiler::Value().
bool C4PacketFwd::DoFwdTo | ( | int32_t | iClient | ) | const |
Definition at line 445 of file C4Packet2.cpp.
References fNegativeList, iClientCnt, and iClients.
Referenced by C4Network2IO::HandleFwdReq().
|
inline |
Definition at line 405 of file C4Network2IO.h.
References iClients.
Referenced by C4Network2IO::HandleFwdReq().
|
inline |
Definition at line 406 of file C4Network2IO.h.
References iClientCnt.
Referenced by C4Network2IO::HandleFwdReq().
|
inline |
Definition at line 403 of file C4Network2IO.h.
References Data.
Referenced by C4Network2IO::HandleFwdReq().
|
inline |
|
inherited |
Definition at line 150 of file C4Packet2.cpp.
Referenced by MkC4NetIOPacket().
|
inherited |
Definition at line 155 of file C4Packet2.cpp.
References mkDecompileAdapt(), and mkInsertAdapt().
void C4PacketFwd::SetData | ( | const StdBuf & | Pkt | ) |
Definition at line 453 of file C4Packet2.cpp.
References Data.
Referenced by C4Network2ClientList::BroadcastMsgToClients(), C4Network2IO::HandleFwdReq(), and C4Network2ClientList::SendMsgToClient().
void C4PacketFwd::SetListType | ( | bool | fnNegativeList | ) |
Definition at line 458 of file C4Packet2.cpp.
References fNegativeList.
Referenced by C4Network2ClientList::BroadcastMsgToClients(), C4Network2IO::HandleFwdReq(), and C4Network2ClientList::SendMsgToClient().
|
inherited |
Definition at line 160 of file C4Packet2.cpp.
References C4NetIOPacket::getPBuf(), C4NetIOPacket::getRef(), and C4NetIOPacket::getStatus().
Referenced by C4IDPacket::C4IDPacket(), and C4Network2IO::HandlePacket().
|
protected |
Definition at line 400 of file C4Network2IO.h.
Referenced by CompileFunc(), getData(), and SetData().
|
protected |
Definition at line 397 of file C4Network2IO.h.
Referenced by CompileFunc(), DoFwdTo(), isNegativeList(), and SetListType().
|
protected |
Definition at line 399 of file C4Network2IO.h.
Referenced by AddClient(), CompileFunc(), DoFwdTo(), and getClientCnt().
|
protected |
Definition at line 398 of file C4Network2IO.h.
Referenced by AddClient(), CompileFunc(), DoFwdTo(), and getClient().