HolyLib Wiki

CNetChan:RequestFile

 number CNetChan:RequestFile( string fileName )

Description

Requests the given file from the other side of the channel.
The result is reported through CNetChan:SetFileReceivedCallback (or CNetChan:SetFileDeniedCallback if the other side denies it), using the returned transfer ID.

Arguments

1string fileName

The path of the file to request

Returns

1number transferID

The transfer ID assigned to this request