Al methods that are used by BasexClient and QueryClass
new()
Initialize a new socket
SocketClass$new(host, port = 1984L, username, password)
host, port, username, password
Host-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
Socket-ID
void_send()
Send input to the socket
SocketClass$void_send(input)
input
Input
Input is either a string or data that is read from a stream
str_receive()
Read a string from a stream
SocketClass$str_receive(bin = FALSE)
bin
Logical; TRUE when str_receive has to retrieve binary data
write_Byte()
Write 1 byte to the socket
SocketClass$write_Byte(Byte)
Byte
A vector length 1
read_Byte()
Read 1 byte to the socket
SocketClass$read_Byte()
get_socket()
Get socket-ID
SocketClass$get_socket()
clone()
The objects of this class are cloneable with this method.
SocketClass$clone(deep = FALSE)
deep
Whether to make a deep clone.