#include <PacketFactory.hpp>
◆ ~PacketFactory()
PacketFactory::~PacketFactory |
( |
| ) |
|
◆ PacketFactory() [1/2]
◆ PacketFactory() [2/2]
◆ extractPacket()
std::pair< bool, std::shared_ptr< IPacket > > PacketFactory::extractPacket |
( |
Connection & |
connection | ) |
|
Will try to extract a packet from the connection's buffer.
- Parameters
-
- Returns
- a pair containing a bool indicating if the extraction was sucessful and a shared pointer to the packet
calls getPacketInfo to get information about a potential packet in the connection's buffer if the packet is complete, instanciates a new packet of the correct type and extracts the message from the connection all buffer manipulation is done in connection and IPacket classes
◆ GetInstance()
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following files: