Sockets Methods
/documentation/pages/Ref/Api/Objects/System/Sockets/index.xml
Methods available for a Sockets object.
SOCKETS.PEEK Function
/documentation/pages/Ref/Api/Objects/System/Sockets/SOCKETS.PEEK Method.xml
Read bytes from socket into string without removing the bytes from the socket stream.
SOCKETS.CLOSE Function
/documentation/pages/Ref/Api/Objects/System/Sockets/SOCKETS.CLOSE Method.xml
Close an open socket.
SOCKETS.ISOPEN Function
/documentation/pages/Ref/Api/Objects/System/Sockets/SOCKETS.ISOPEN Method.xml
The .ISOPEN() method returns .T. (TRUE) if the connection is open; .F. (FALSE) otherwise.
SOCKETS.READLINE Function
/documentation/pages/Ref/Api/Objects/System/Sockets/SOCKETS.READLINE Method.xml
Reads a line from the socket, if one is available (else returns blank).
SOCKETS.WRITEB Function
/documentation/pages/Ref/Api/Objects/System/Sockets/SOCKETS.WRITEB Method.xml
Write blob to socket.
SOCKETS.WRITE Function
/documentation/pages/Ref/Api/Objects/System/Sockets/SOCKETS.WRITE Method.xml
Write string to socket.
SOCKETS.ACCEPT Function
/documentation/pages/Ref/Api/Objects/System/Sockets/SOCKETS.ACCEPT Method.xml
Accept an open sockets input. Returns a new accepted socket. flags - 'B' = blocking .
Handling Errors
/documentation/pages/Ref/Xbasic/Handling Errors.xml
An important part of writing any program is handling potential errors properly. You should do the same when writing an Xbasic script, making sure it can recover from some common run-time errors (e.g., when a file is not found, the disk is full, or the table is opened exclusively by another session or user).
SOCKETS.READ Function
/documentation/pages/Ref/Api/Objects/System/Sockets/SOCKETS.READ Method.xml
Read bytes from socket into string.