SendNetworkFile()

Syntax

Result = SendNetworkFile(Connection, Filename$)
Description
Send a file to the specified client. This function can be used by both client and server applications.

Parameters

Connection The connection to send the file to. On the server side, 'Connection' is the client which should receive this data. On the client side, 'Connection' is returned by OpenNetworkConnection().
Filename$ The filename of the file to send.

Return value

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

Remarks

The file is sent using very specific (and safe) methods. It must be received with the ReceiveNetworkFile() function. This functions locks the program execution until the whole file has been sent.

See Also

SendNetworkData(), SendNetworkString(), ReceiveNetworkFile()

Supported OS

All

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