enet-tutorials ~master (2021-12-21T00:12:49.5163745)
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