BaseServer

Undocumented in source.

Members

Functions

disconnectAll
void disconnectAll()

Disconnects all clients.

sendTo
void sendTo(R clients, ubyte[] data, ubyte channel)
void sendTo(R clients, const(P) packet, ubyte channel)
void sendTo(R clients, ENetPacket* packet, ubyte channel)

Sends packet to specified clients.

sendToAll
void sendToAll(P packet, ubyte channel)
void sendToAll(ubyte[] data, ubyte channel)
void sendToAll(ENetPacket* packet, ubyte channel)

Sends packet to all clients.

sendToAllExcept
void sendToAllExcept(SessionId exceptClient, const(P) packet, ubyte channel)
void sendToAllExcept(SessionId exceptClient, ubyte[] data, ubyte channel)
void sendToAllExcept(SessionId exceptClient, ENetPacket* packet, ubyte channel)

Sends packet to all clients except one.

start
void start(ConnectionSettings settings, uint hostAddr, ushort port)
Undocumented in source. Be warned that the author may not have intended to support it.
update
void update()
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin PacketManagement!(false)
Undocumented in source.
__anonymous
mixin BaseConnection!()
Undocumented in source.

Variables

peerStorage
PeerStorage peerStorage;
Undocumented in source.

Meta