32 onNewIncomingConnection(
::NetworkIdentifier const&
id, ::std::shared_ptr<::NetworkPeer>&& peer) = 0;
35 onNewOutgoingConnection(
::NetworkIdentifier const&
id, ::std::shared_ptr<::NetworkPeer>&& peer) = 0;
37 virtual void onConnectionClosed(
39 ::Connection::DisconnectFailReason
const discoReason,
40 ::std::string
const& messageFromServer,
41 ::std::string
const& messageBodyOverride,
42 bool skipDisconnectMessage,
57 ::ll::TypedStorage<8, 8, ::Connector::ConnectionCallbacks&> mCallbacks;
62 Connector& operator=(Connector
const&);
63 Connector(Connector
const&);
71 virtual ::std::string getLocalIp();
73 virtual ushort getPort()
const;
75 virtual ::Social::GameConnectionInfo
const& getConnectedGameInfo()
const;
77 virtual bool isIPv4Supported()
const;
79 virtual bool isIPv6Supported()
const;
81 virtual ushort getIPv4Port()
const;
83 virtual ushort getIPv6Port()
const;
85 virtual ::TransportLayer getNetworkType()
const;
97 MCFOLD ::std::string $getLocalIp();
99 MCFOLD ushort $getPort()
const;
101 MCFOLD ::Social::GameConnectionInfo
const& $getConnectedGameInfo()
const;
103 MCFOLD
bool $isIPv4Supported()
const;
105 MCFOLD
bool $isIPv6Supported()
const;
107 MCFOLD ushort $getIPv4Port()
const;
109 MCFOLD ushort $getIPv6Port()
const;
111 MCFOLD ::TransportLayer $getNetworkType()
const;