ReceiveNetworkFile()

Syntax

Result = ReceiveNetworkFile(Connection, Filename$)
Description
Receive an entire file from the specified client. This function can be used by both client and server applications.

Parameters

Connection The connection to receive data from. On the server side, 'Connection' is the client which has sent the file. On the client side, 'Connection' is returned by OpenNetworkConnection().
Filename$ The filename to save the file to.

Return value

Returns nonzero if the file was received correctly and zero if there was an error.

Remarks

The file must have been sent specifically by using SendNetworkFile() function.

See Also

ReceiveNetworkData(), NetworkClientEvent(), NetworkServerEvent(), SendNetworkFile()

Supported OS

All

<- ReceiveNetworkData() - Network Index - SendNetworkData() ->