HolyLib Wiki

SetMessageCallback

  CNetChan:SetMessageCallback( function callback )

Description

Sets the callback function for any incomming messages.
Can be returned using CNetChan:GetMessageCallback

Arguments

1function callback

The new callback function

Function argument(s):
1CNetChan channel - The channel
2bf_read buffer - The received data
3number length - the length of the received data