SendData

From Soldat Community Wiki
Jump to: navigation, search

From the Scripting Manual

function SendData(Index: integer; Data: string): boolean;

Parameter Info:
 Index (Integer): Index of the socket to send data to
 Data (String): Data to be sent to the socket

Description:
 This function will send a string to a socket (Index)

 NOTE: This function is for Soldat 1.3.2! 
 Dedicated Server V2.6.0
 DO NOT USE THIS FUNCTION ON SOLDAT 1.3.1/2.5.2

 NOTE: This function is only enabled when Safe Mode is turned off!
 Start the server with -safe 0 to disable Safe Mode.

Examples

See the TCP Socket Example by EnEsCe


External Links