3rd Eye Scene C#
3rd Eye Scene C# documentation
|
Defines the interface for a 3rd Eye Scene server. More...
Public Member Functions | |
int | Send (PacketBuffer packet) |
Send a pre-composed packet to all clients. | |
int | Create (Shape shape) |
Sends a create message for the given shape. | |
int | Destroy (Shape shape) |
Sends an update message for the given shape. | |
int | Update (Shape shape) |
Sends a destroy message for the given shape. | |
int | UpdateTransfers (int byteLimit) |
Update any pending amortised data transfers (e.g., mesh transfer). | |
int | UpdateFrame (float dt, bool flush=true) |
Sends a message marking the end of the current frame (and start of a new frame). | |
IConnection | Connection (int index) |
Requests the connection at the given index. | |
void | UpdateConnections (IList< IConnection > connections, NewConnectionCallback callback=null) |
Called from the IConnectionMonitor implementation to update the current server connections. | |
Properties | |
ServerSettings | Settings [get] |
Retrieve the settings with which the server was created. | |
IConnectionMonitor | ConnectionMonitor [get] |
Returns the connection monitor object for this Server. | |
int | ConnectionCount [get] |
Returns the number of current connections. | |
IEnumerable< IConnection > | Connections [get] |
Enumerates the current connections. |
Defines the interface for a 3rd Eye Scene server.
IConnection Tes::Server::IServer::Connection | ( | int | index | ) |
Requests the connection at the given index.
This data may be stale if the ConnectionMonitor
has yet to update.
index | The index of the requested connection. |
Implemented in Tes::Server::TcpServer.
int Tes::Server::IServer::Create | ( | Shape | shape | ) |
Sends a create message for the given shape.
shape | The shape to create. |
Implemented in Tes::Server::TcpServer.
int Tes::Server::IServer::Destroy | ( | Shape | shape | ) |
Sends an update message for the given shape.
shape | The shape to destroy. |
Implemented in Tes::Server::TcpServer.
int Tes::Server::IServer::Send | ( | PacketBuffer | packet | ) |
Send a pre-composed packet to all clients.
packet |
Implemented in Tes::Server::TcpServer.
int Tes::Server::IServer::Update | ( | Shape | shape | ) |
Sends a destroy message for the given shape.
shape | The shape to update . |
Implemented in Tes::Server::TcpServer.
void Tes::Server::IServer::UpdateConnections | ( | IList< IConnection > | connections, |
NewConnectionCallback | callback = null |
||
) |
Called from the IConnectionMonitor implementation to update the current server connections.
connections | The collection of active connections to server should handle. |
callback | Optional callback to invoke for each new connection. |
Implemented in Tes::Server::TcpServer.
int Tes::Server::IServer::UpdateFrame | ( | float | dt, |
bool | flush = true |
||
) |
Sends a message marking the end of the current frame (and start of a new frame).
dt | Indicates the time passed since over this frame (seconds). |
flush | True to allow clients to flush transient options, false to clients preserver such objects. |
Implemented in Tes::Server::TcpServer.
int Tes::Server::IServer::UpdateTransfers | ( | int | byteLimit | ) |
Update any pending amortised data transfers (e.g., mesh transfer).
byteLimit | Limit the packet payload size to approximately this amount of data. |
Implemented in Tes::Server::TcpServer.
int Tes::Server::IServer::ConnectionCount [get] |
Returns the number of current connections.
Implemented in Tes::Server::TcpServer.
IConnectionMonitor Tes::Server::IServer::ConnectionMonitor [get] |
Returns the connection monitor object for this Server.
Null if connections are not supported (internal only).
Implemented in Tes::Server::TcpServer.