<<

Contents

Search

>>

 

SERVER_SOCKET_GET_CLIENT_ADDRESS$

 

 

Function

 

 

Syntax:

SERVER_SOCKET_GET_CLIENT_ADDRESS$(<Handle of Server Socket>)

 

<Handle of Server Socket> = <NUM-EXPRESSION>

 

 

Meaning:

Returns in the server socket macro the address of the connected client..

 

If an error occurs, the empty string "" is returned and the variable ERRORTEXT$ contains the error message. If no error occurred, the variable  ERRORTEXT$ contains the the empty string "".

 

Parameter:

Handle of Server Socket

Handle which has been returned by SERVER_SOCKET.

 

Sample:

IP_ADDRESS$ = SERVER_SOCKET_GET_CLIENT_ADDRESS$(HANDLE%)

IF NOT ISSPACE(ERRORTEXT$)
THEN … Error …

ENDIF

 

See also:

SERVER_SOCKET

SERVER_SOCKET_SET_TIMEOUT

SERVER_SOCKET_READ$

SERVER_SOCKET_WRITE

CLOSE_SOCKET

CLIENT_SOCKET