10#include <condition_variable>
12#if PROTOCOL_VERSION > 759
15#if PROTOCOL_VERSION > 760
27 NetworkManager(
const std::string& address,
const std::string& login,
const bool force_microsoft_auth,
const std::vector<ProtocolCraft::Handler*>& handlers = {});
36 void Send(
const std::shared_ptr<ProtocolCraft::Message> msg);
48 void OnNewRawData(
const std::vector<unsigned char>& packet);
52#if PROTOCOL_VERSION < 768
53 virtual void Handle(ProtocolCraft::ClientboundGameProfilePacket& msg)
override;
59#if PROTOCOL_VERSION > 754
62#if PROTOCOL_VERSION > 340
65#if PROTOCOL_VERSION > 759
67#if PROTOCOL_VERSION < 761
68 virtual void Handle(ProtocolCraft::ClientboundPlayerChatHeaderPacket& msg)
override;
71#if PROTOCOL_VERSION > 760
74#if PROTOCOL_VERSION > 763
82#if PROTOCOL_VERSION > 765
89 std::shared_ptr<TCP_Com>
com;
104#if PROTOCOL_VERSION > 759
107#if PROTOCOL_VERSION > 760
112#if PROTOCOL_VERSION > 763
std::condition_variable process_condition
void AddHandler(ProtocolCraft::Handler *h)
std::thread::id GetProcessingThreadId() const
void SendChatCommand(const std::string &command)
virtual void Handle(ProtocolCraft::ClientboundLoginCompressionPacket &msg) override
std::thread m_thread_process
void SendChatMessage(const std::string &message)
LastSeenMessagesTracker chat_context
void Send(const std::shared_ptr< ProtocolCraft::Message > msg)
std::shared_ptr< TCP_Com > com
std::chrono::steady_clock::time_point chunk_batch_start_time
const std::string & GetMyName() const
std::shared_ptr< Authentifier > authentifier
const ProtocolCraft::ConnectionState GetConnectionState() const
std::vector< ProtocolCraft::Handler * > subscribed
std::atomic< int > message_sent_index
ProtocolCraft::ConnectionState state
void ProcessPacket(const std::vector< unsigned char > &packet)
std::queue< std::vector< unsigned char > > packets_to_process
ProtocolCraft::UUID chat_session_uuid
void OnNewRawData(const std::vector< unsigned char > &packet)
std::array< unsigned char, 16 > UUID