# SendSocketString

## Description

Will send a string to the remote connection. Note that data is not sent immediately, you must call FlushSocket to send it. If you are sending the string to a non-AGK app then the string is constructed of a 4 byte length value followed by X bytes of string data where X is the length value. The string is not null terminated. Returns 1 if the byte was successfully written to the buffer, 0 if the socket disconnected.

## Definition

integer SendSocketString( socketID, value )

int agk::SendSocketString( UINT socketID, const char *value )

## Parameters

- socketID - The ID of the socket to write
- value - The value to send