HolyLib Wiki

CNetChan:SetPacketStartCallback

  CNetChan:SetPacketStartCallback( function callback )

Description

Sets the callback function that is called each time a new packet has started arriving on the channel.
Can be returned using CNetChan:GetPacketStartCallback

Arguments

1function callback

The new callback function

Function argument(s):
1CNetChan channel -

The channel

2number inSequenceNr -

The incoming sequence number of the packet

3number outSequenceNrAck -

The outgoing sequence number that was acknowledged

Function return argument(s):