SendNetworkData()

Syntax

Result = SendNetworkData(Connection, *MemoryBuffer, Length)
Description
Send raw data to the specified client. This command can be used by both client and server applications.

On the server side, 'Connection' is the client which should receive this data.
On the client side, 'Connection' is returned by OpenNetworkConnection().

The 'Result' is the number of bytes, that was actually sent. If it is not equal to the 'Length' parameter, the receiving buffer of the user is maybe full. If nothing could be sent, you will get -1 as 'Result'.

Supported OS

All

<- ReceiveNetworkFile() - Network Index - SendNetworkFile() ->