enet-tutorials ~master (2014-11-15T21:57:48Z)
Dub
Repo
Connection.registerPacket
connection
Connection
Undocumented in source. Be warned that the author may not have intended to support it.
class
Connection
void
registerPacket
(
P
)
(
PacketHandler
handler
= null
,
string
packetName
=
P.stringof
)
Meta
Source
See Implementation
connection
Connection
functions
createPacket
flush
handlePacket
onConnect
onDisconnect
onPacketReceived
packetId
packetName
printPacketMap
registerPacket
registerPacketHandler
start
stop
unpackPacket
update
variables
buffer
connectHandler
disconnectHandler
host
isRunning
packetArray
packetMap