Skip to main content

Aliaslar

  • raknet.OnPacketReceive.Connect

Argümanlar

(packet: RakNetPacket) -> ()
gerekli
Function called with each observed incoming RakNetPacket.

Dönüşler

RakNetSignalConnection
Connection object with Disconnect and Connected.

Tipler

RakNetPacket

Live packet object passed to RakNet hooks and packet signal callbacks. It is only valid during the callback that receives it.

RakNetSignalConnection

Connection object returned by RakNet.OnPacketSend.Connect and RakNet.OnPacketReceive.Connect.

Örnek

Use the signal-style API to observe incoming packets and disconnect the returned connection.