33 ::ll::TypedStorage<8, 32, ::std::string> data;
34 ::ll::TypedStorage<4, 4, ::Compressibility> compressible;
35 ::ll::TypedStorage<8, 64, ::std::function<void()>> callback;
69 ::ll::TypedStorage<8, 80, ::BinaryStream> mOutgoingData;
70 ::ll::TypedStorage<8, 8, uint64> mCompressibleBytes;
71 ::ll::TypedStorage<8, 32, ::std::string> mIncomingDataBuffer;
72 ::ll::TypedStorage<8, 80, ::std::optional<::ReadOnlyBinaryStream>> mIncomingData;
73 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::TaskGroup>> mTaskGroup;
74 ::ll::TypedStorage<8, 80, ::SPSCQueue<::BatchedNetworkPeer::DataCallback, 512>> mSendQueue;
75 ::ll::TypedStorage<1, 1, ::std::atomic<bool>> mTaskRunning;
76 ::ll::TypedStorage<8, 8, ::std::atomic<uint64>> mQueuedPackets;
77 ::ll::TypedStorage<8, 8, uint64> mSentPackets;
78 ::ll::TypedStorage<1, 1, bool> mAsyncEnabled;
88 virtual void flush(::std::function<
void()>&& callback) ;
91 virtual void sendPacket(
92 ::std::string
const& data,
93 ::NetworkPeer::Reliability reliability,
94 ::Compressibility compressible
98 virtual ::NetworkPeer::DataStatus receivePacket(
99 ::std::string& outData,
100 ::std::shared_ptr<::std::chrono::steady_clock::time_point>
const& timepointPtr
104 virtual ::NetworkPeer::NetworkStatus getNetworkStatus() const ;
107 virtual
void update() ;
115 MCAPI
void _startSendTask();
133 MCAPI
void $flush(::
std::function<
void()>&& callback);
136 $sendPacket(::
std::
string const& data, ::
NetworkPeer::Reliability reliability, ::Compressibility compressible);
139 ::
std::
string& outData,
140 ::
std::shared_ptr<::
std::chrono::steady_clock::time_point> const& timepointPtr
145 MCAPI
void $update();
151 MCAPI static
void** $vftable();