33 ::ll::TypedStorage<8, 32, ::std::string> data;
34 ::ll::TypedStorage<4, 4, ::Compressibility> compressible;
35 ::ll::TypedStorage<8, 64, ::std::function<void()>> callback;
70 ::ll::TypedStorage<8, 80, ::BinaryStream> mOutgoingData;
71 ::ll::TypedStorage<8, 8, uint64> mCompressibleBytes;
72 ::ll::TypedStorage<8, 32, ::std::string> mIncomingDataBuffer;
73 ::ll::TypedStorage<8, 80, ::std::optional<::ReadOnlyBinaryStream>> mIncomingData;
74 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mTaskGroup;
75 ::ll::TypedStorage<8, 80, ::SPSCQueue<::BatchedNetworkPeer::DataCallback, 512>> mSendQueue;
76 ::ll::TypedStorage<1, 1, ::std::atomic<bool>> mTaskRunning;
77 ::ll::TypedStorage<8, 8, ::std::atomic<uint64>> mQueuedPackets;
78 ::ll::TypedStorage<8, 8, uint64> mSentPackets;
79 ::ll::TypedStorage<1, 1, bool> mAsyncEnabled;
93 virtual void flush(::std::function<
void()>&& callback) ;
96 virtual void sendPacket(
97 ::std::string
const& data,
98 ::NetworkPeer::Reliability reliability,
99 ::Compressibility compressible
103 virtual ::NetworkPeer::DataStatus receivePacket(
104 ::std::string& outData,
105 ::std::shared_ptr<::std::chrono::steady_clock::time_point>
const& timepointPtr
109 virtual ::NetworkPeer::NetworkStatus getNetworkStatus() const ;
112 virtual
void update() ;
120 MCAPI
void _startSendTask();
138 MCAPI
void $flush(::
std::function<
void()>&& callback);
141 $sendPacket(::
std::
string const& data, ::
NetworkPeer::Reliability reliability, ::Compressibility compressible);
144 ::
std::
string& outData,
145 ::
std::shared_ptr<::
std::chrono::steady_clock::time_point> const& timepointPtr
150 MCAPI
void $update();