4 #ifndef _3ESCONNECTION_H_ 5 #define _3ESCONNECTION_H_ 16 struct ServerInfoMessage;
26 virtual void close() = 0;
30 virtual void setActive(
bool active) = 0;
34 virtual bool active()
const = 0;
39 virtual const char *address()
const = 0;
42 virtual uint16_t port()
const = 0;
45 virtual bool isConnected()
const = 0;
51 virtual int create(
const Shape &shape) = 0;
57 virtual int destroy(
const Shape &shape) = 0;
63 virtual int update(
const Shape &shape) = 0;
72 virtual int updateFrame(
float dt,
bool flush =
true) = 0;
86 virtual int updateTransfers(
unsigned byteLimit) = 0;
97 virtual unsigned referenceResource(
const Resource *resource) = 0;
106 virtual unsigned releaseResource(
const Resource *resource) = 0;
114 virtual int send(
const uint8_t *data,
int byteCount) = 0;
117 inline int send(
const int8_t *data,
int byteCount)
119 return send((
const uint8_t*)data, byteCount);
124 #endif // _3ESCONNECTION_H_ A base class for encapsulating a shape which is to be represented remotely.
Definition: 3esshape.h:39
Defines the interfaces for a client connection.
Definition: 3esconnection.h:19
Information about the server.
Definition: 3esmessages.h:160
Definition: 3esbounds.h:13
int send(const int8_t *data, int byteCount)
Definition: 3esconnection.h:117
The Resource base class defines an interface for any resource used by Shape objects such as MeshSet...
Definition: 3esresource.h:34
virtual ~Connection()
Virtual destructor.
Definition: 3esconnection.h:23