- disconnectAll
void disconnectAll()
- 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(ClientId exceptClient, const(P) packet, ubyte channel)
void sendToAllExcept(ClientId exceptClient, ubyte[] data, ubyte channel)
void sendToAllExcept(ClientId exceptClient, ENetPacket* packet, ubyte channel)
Sends packet to all clients except one.
- start
void start(ConnectionSettings settings, uint host, ushort port)
Undocumented in source. Be warned that the author may not have intended to support it.
- isRunning
bool isRunning;
Undocumented in source.
- host
ENetHost* host;
Undocumented in source.
- packetArray
PacketInfo*[] packetArray;
Undocumented in source.
- packetMap
PacketInfo*[TypeInfo] packetMap;
Undocumented in source.
- buffer
ubyte[] buffer;
Undocumented in source.
- connectHandler
void delegate(ref ENetEvent) connectHandler;
Undocumented in source.
- disconnectHandler
void delegate(ref ENetEvent) disconnectHandler;
Undocumented in source.
- start
void start(ConnectionSettings settings)
Undocumented in source. Be warned that the author may not have intended to support it.
- packetId
size_t packetId()
Undocumented in source. Be warned that the author may not have intended to support it.
- packetName
string packetName(size_t packetId)
Undocumented in source. Be warned that the author may not have intended to support it.
- registerPacket
void registerPacket(PacketHandler handler, string packetName)
Undocumented in source. Be warned that the author may not have intended to support it.
- registerPacketHandler
void registerPacketHandler(PacketHandler handler)
Undocumented in source. Be warned that the author may not have intended to support it.
- handlePacket
bool handlePacket(size_t packetId, ubyte[] packetData, ClientId peerInfo)
Undocumented in source. Be warned that the author may not have intended to support it.
- createPacket
ubyte[] createPacket(const(P) packet)
Undocumented in source. Be warned that the author may not have intended to support it.
- packetNames
string[] packetNames()
Undocumented in source. Be warned that the author may not have intended to support it.
- printPacketMap
void printPacketMap()
Undocumented in source. Be warned that the author may not have intended to support it.
- shufflePackets
void shufflePackets()
Undocumented in source. Be warned that the author may not have intended to support it.
- flush
void flush()
Undocumented in source. Be warned that the author may not have intended to support it.
- stop
void stop()
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.
- onConnect
void onConnect(ENetEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
- onPacketReceived
void onPacketReceived(ENetEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.
- onDisconnect
void onDisconnect(ENetEvent event)
Undocumented in source. Be warned that the author may not have intended to support it.