Open raknet.add_receive_hookOpen raknet.add_send_hookOpen raknet.diagnosticsOpen raknet.is_enabledOpen raknet.remove_receive_hookOpen raknet.remove_send_hookOpen raknet.sendOpen RakNetPacket.AsArrayOpen RakNetPacket:Block

Reference

RakNet

Read, change, block and send the game's own network packets.

22 functions
FunctionSummary
raknet.addreceivehookraknet.add_receive_hookRegisters a callback for incoming packet snapshots.
raknet.addsendhookraknet.add_send_hookRegisters a callback for outgoing packets.
raknet.diagnosticsraknet.statsReturns a snapshot of packet-library status and counters.
raknet.is_enabledReports whether RakNet functionality is enabled for this session.
raknet.receiveHands a packet to the receive hooks as if it had arrived.
raknet.removereceivehookraknet.remove_receive_hookRemoves a registered incoming packet callback.
raknet.removesendhookraknet.remove_send_hookRemoves a registered outgoing packet callback.
raknet.sendSends packet bytes through the current supported game connection.
RakNetPacket.AsArrayReads a new byte array containing integers from 0 through 255.
RakNetPacket.AsBufferReads a new buffer copy of the packet bytes.
RakNetPacket.AsStringRakNetPacket.dataReads packet bytes as a binary string.
RakNetPacket.BroadcastReads whether the outgoing packet was marked for broadcast.
RakNetPacket.DirectionRakNetPacket.directionReads outgoing or Incoming.
RakNetPacket.ItemIdReads second packet byte, or zero when the byte is absent.
RakNetPacket.OrderingChannelRakNetPacket.ChannelReads outgoing ordering channel.
RakNetPacket.PacketIdRakNetPacket.IdReads first packet byte, or zero when the byte is absent.
RakNetPacket.PriorityReads outgoing transport priority.
RakNetPacket.ReceiptReads transport receipt identifier.
RakNetPacket.ReliabilityReads outgoing reliability mode.
RakNetPacket.SizeRakNetPacket.LengthRakNetPacket.lengthReads current packet length in bytes.
RakNetPacket:BlockRakNetPacket:DropRakNetPacket:IgnorePrevents the current outgoing packet from being sent.
RakNetPacket:SetDataReplaces the bytes of a live outgoing packet.