SendNetworkData()

Syntax

Result = SendNetworkData(Connection, *MemoryBuffer, Length)
Description
Send raw data to the specified client. This function 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 probally full. If nothing could be sent then 'Result' will equal -1.

On UDP connections, the maximum 'Length' is 2048. On TCP connections, the maximum 'Length' is 65536.

Supported OS

All

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