SendNetworkString()

Syntax

SendNetworkString(Connection, String$)
Description
Send a string 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().

Note: There is no ReceiveNetworkString(), SendNetworkString() only provides a solution to quickly send strings. The string will be sent without the terminating NULL character, and can be received using ReceiveNetworkData(), after NetworkServerEvent() / NetworkClientEvent() returned #PB_NetworkEvent_Data). In unicode mode the string is sent as UTF-8, which is processor independant (unlike UTF-16 which is tied to processor endianness).

Supported OS

All

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