Sockets Methods

The SOCKETS object is deprecated and may be removed in a future release. Use INET::Socket instead.

Description

Methods available for a Sockets object.

Methods

SOCKETS.ACCEPT Method

Accept an open sockets input. Returns a new accepted socket. flags - 'B' = blocking .

SOCKETS.ADDRESS_GET Method

Get the ip address of an open socket. (R = remote IP, L = local IP)

SOCKETS.CLOSE Method

Close an open socket.

SOCKETS.DATAGRAM_HANDLER Method

Setup an named asynchronous handler - when input matches the 'match string' , the code will be invoked with the incoming string in a_message.

SOCKETS.DATAGRAM_KILL Method

Close down a datagram handler.

SOCKETS.DATAGRAM_SEND Method

Send data to a host/port.

SOCKETS.DATAGRAM_SEND_WITH_RECEIPT Method

Send data to a host/port wait for returned response.

SOCKETS.ISOPEN Method

The .ISOPEN() method returns .T. (TRUE) if the connection is open; .F. (FALSE) otherwise.

SOCKETS.OPEN Method

Open an existing socket - mode is S for server, C for client, L for Listen (server without accept), R for server with reuse address flag.

SOCKETS.OPTIONS_GET Method

Get options (A-accepting L-Linger K-Keep Alive R-Reuse Address N-Don't route D-elay X-Debug - I=input buffer O=output buffer T=timeout - '' escapes characters ).

SOCKETS.OPTIONS_SET Method

Set options ([-]L-Linger K-Keep Alive R-Reuse Address N-Don't route [-]D-elay X-Debug - I=#/O=# - internal input output buffer controls T=# TS=# TR=# timout in milliseconds for timeout on send/receive or timeout [S]end,[R]ecieve ).

SOCKETS.PEEK Method

Read bytes from socket into string without removing the bytes from the socket stream.

SOCKETS.PORT_GET Method

Get the port for an open socket. (R = remote port, L = local port)

SOCKETS.READ Method

Read bytes from socket into string.

SOCKETS.READB Method

Read bytes from socket into blob.

SOCKETS.READLINE Method

Reads a line from the socket, if one is available (else returns blank).

SOCKETS.WRITE Method

Write string to socket.

SOCKETS.WRITEB Method

Write blob to socket.