Al methods that are used by BasexClient and QueryClass
new()Initialize a new socket
SocketClass$new(host, port = 1984L, username, password)
host, port, username, passwordHost-information and credentials
finalize()When releasing the session-object, close the socketConnection
SocketClass$finalize()
bool_test_sock()Return a boolean that indicates the result from the last action on the socket
SocketClass$bool_test_sock(socket)
socketSocket-ID
void_send()Send input to the socket
SocketClass$void_send(input)
inputInput
Input is either a string or data that is read from a stream
str_receive()Read a string from a stream
SocketClass$str_receive(input, output, bin = FALSE)
input, outputInput- and output-stream
binBoolean; TRUE when str_receive has to retrieve binary data
This method is not intented to be called direct
get_socket()Get socket-ID
SocketClass$get_socket()
clone()The objects of this class are cloneable with this method.
SocketClass$clone(deep = FALSE)
deepWhether to make a deep clone.