HolyLib Wiki

CNetChan:SetFileRequestedCallback

  CNetChan:SetFileRequestedCallback( function callback )

Description

Sets the callback function for when the other side of the channel requests a file for download.
Can be returned using CNetChan:GetFileRequestedCallback

Arguments

1function callback

The new callback function

Function argument(s):
1CNetChan channel -

The channel

2string fileName -

The requested file's name

3number transferID -

The transfer ID of the request

Function return argument(s):