3 #include "ArraySegment.hpp"
4 #include "Platform.hpp"
5 #include "KapMirror/Experimental/Core/Action.hpp"
25 virtual void clientConnect(
const std::string& ip,
int port) = 0;
73 static std::shared_ptr<Transport> activeTransport;
virtual void serverSend(int connectionId, const std::shared_ptr< ArraySegment< byte >> &data)=0
Send data to the client.
Definition: Transport.hpp:10
virtual void clientSend(const std::shared_ptr< ArraySegment< byte >> &data)=0
Send data to the server.
virtual void serverStart(int port)=0
Start the server and listen the port.
virtual bool clientConnected()=0
Client is connected to the server.
virtual void serverStop()=0
Stop the server.
virtual void clientDisconnect()=0
Disconnect the client from the server.
virtual void serverEarlyUpdate()=0
Server Update (call this function every frame)
virtual void serverDisconnect(int connectionId)=0
Disconnect the connection.
virtual void clientConnect(const std::string &ip, int port)=0
Connect the client to the server.
virtual void clientEarlyUpdate()=0
Client Update (call this function every frame)
Definition: ArraySegment.hpp:9
Definition: Action.hpp:10