66 std::map< std::string, SharedPtr< ChannelControlBlock > >
Channels;
89 std::map< std::string, SharedPtr< ChannelControlBlock > >::iterator it =
Channels.find(ChannelName);
#define FORCEINLINE
Definition AttributeDefines.hpp:55
struct sockaddr_in sockaddr_in_t
Definition SocketTypedef.hpp:11
Control block for management of a client connection and its information.
Definition ClientControlBlock.hpp:25
std::string Realname
Definition ClientControlBlock.hpp:32
std::vector< SharedPtr< MsgBlock > > RecvMsgBlocks
Received messages from the client.
Definition ClientControlBlock.hpp:51
int hSocket
Definition ClientControlBlock.hpp:27
std::string Username
Definition ClientControlBlock.hpp:33
SharedPtr< ChannelControlBlock > FindChannel(const std::string &ChannelName)
Definition ClientControlBlock.hpp:87
ClientControlBlock()
Definition ClientControlBlock.hpp:68
std::queue< SharedPtr< MsgBlock > > MsgSendingQueue
Queue of messages to send.
Definition ClientControlBlock.hpp:60
size_t RecvMsgBlockCursor
A cursor to indicate the next offset to receive in the message block at the front of the RecvMsgBlock...
Definition ClientControlBlock.hpp:54
std::string Nickname
Definition ClientControlBlock.hpp:31
bool bSocketClosed
Definition ClientControlBlock.hpp:44
std::string ServerPass
Definition ClientControlBlock.hpp:35
std::map< std::string, SharedPtr< ChannelControlBlock > > Channels
Map of channel name to the channel control block that the client is connected.
Definition ClientControlBlock.hpp:66
size_t SendMsgBlockCursor
A cursor to indicate the next offset to send in the message block at the front of the MsgSendingQueue...
Definition ClientControlBlock.hpp:63
time_t LastActiveTime
Definition ClientControlBlock.hpp:37
bool bRegistered
Definition ClientControlBlock.hpp:39
sockaddr_in_t Addr
Definition ClientControlBlock.hpp:29
bool bExpired
Flag that indicate whether the client is expired, and expired client will be released after the remai...
Definition ClientControlBlock.hpp:42
Base class for memory pooling with new/delete operator overloading.
Definition FlexibleMemoryPoolingBase.hpp:39
Shared pointer custom implementation for C++98 standard.
Definition SharedPtr.hpp:164
Definition ControlBlock.hpp:7
Definition ChannelControlBlock.hpp:12