12class ServerCommunicationInterface {
22 ServerCommunicationInterface& operator=(ServerCommunicationInterface
const&);
23 ServerCommunicationInterface(ServerCommunicationInterface
const&);
24 ServerCommunicationInterface();
30 MCNAPI
void communicate(::std::string
const& method,
::Json::Value const& params);
32 MCNAPI
void sendBandwidthMetric(
33 uint64 connectionTotalBytesReceived,
34 uint64 connectionTotalBytesSent,
35 uint64 playerDeltaBytesReceived,
36 uint64 playerDeltaBytesSent,
37 ::std::string
const& xuid
42 MCNAPI
void sendServerStarted();
44 MCNAPI
void sendServerTickTime(::std::chrono::nanoseconds timepoint);
46 MCNAPI ~ServerCommunicationInterface();
54 MCNAPI static ::std::unique_ptr<::ServerCommunicationInterface> create(
::NetworkAddress const& address);