<<

Contents

Search

>>

 

CLIENT_SOCKET_WRITE

 

 

Function

 

 

Syntax:

CLIENT_SOCKET_WRITE(<Handle>,<Data>)

 

<Handle>

= <NUM-EXPRESSION>

<Data>

= <STRING-EXPRESSION>

 

 

Meaning:

This function sends the data <Data> to the client socked which is connected with the server socket.

 

<Handle> is the identification number returned by the function CLIENT_SOCKET.

 

CLIENT_SOCKET_WRITE returns the value 0 if no error occurred, otherwise –1. In the case of an error the variable ERRORTEXT$ contains the error report.

 

Parameter:

Handle

Handle of CLIENT_SOCKET

Data

Data to send

 

Sample:

H% = CLIENT_SOCKET_WRITE(HANDLE%,DATA$)

IF H% <> 0

THEN ERRORMES = "Error " + ERRORTEXT$

ENDIF

 

See also:

CLIENT_SOCKET

CLIENT_SOCKET_READ$

CLIENT_SOCKET_SET_TIMEOUT

CLOSE_SOCKET

SERVER_SOCKET