LeviLamina
Loading...
Searching...
No Matches
ServerCommunicationInterface.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7struct NetworkAddress;
8namespace Json { class Value; }
9// clang-format on
10
11class ServerCommunicationInterface {
12public:
13 // member variables
14 // NOLINTBEGIN
17 // NOLINTEND
18
19public:
20 // prevent constructor by default
21 ServerCommunicationInterface& operator=(ServerCommunicationInterface const&);
22 ServerCommunicationInterface(ServerCommunicationInterface const&);
23 ServerCommunicationInterface();
24
25public:
26 // member functions
27 // NOLINTBEGIN
28 MCNAPI_S void communicate(::std::string const& method, ::Json::Value const& params);
29
30 MCNAPI_S void sendBandwidthMetric(
31 uint64 connectionTotalBytesReceived,
32 uint64 connectionTotalBytesSent,
33 uint64 playerDeltaBytesReceived,
34 uint64 playerDeltaBytesSent,
35 ::std::string const& xuid
36 );
37
38 MCNAPI_S void sendServerStarted();
39 // NOLINTEND
40
41public:
42 // static functions
43 // NOLINTBEGIN
44 MCNAPI_S static ::std::unique_ptr<::ServerCommunicationInterface> create(::NetworkAddress const& address);
45 // NOLINTEND
46};
Definition Value.h:16
Definition NetworkAddress.h:5
Definition Alias.h:14