Home » Documentation » SocketDriver

SocketDriver

The SocketDriver allows for easy access to socket facilities and is especially useful when creating interfaces to existing protocols.

Constructors

Name Description
Constructor  Initializes a new instance of the SocketDriver class.

Destructors

Name Description
Destructor  Closes the current connection on destruction of the object.

Methods

Name Description
Close  Terminates the connection with the host.
IsOpen  Returns true if the socket connection is open, otherwise false is returned.
Open  Opens the connection to the host.
Read  Returns all data from the connection.
ReadBytes  Returns a specified amount of bytes from the connection with the specified integer bytes argument.
Arguments:
(Bytes)
ReadLine  Returns a line from the connection.
Write  Write the specified string data argument to the connection.
Arguments:
(Data)

Properties

Name Description
Connection  Stores the object used to interact with the socket.
Host  Gets and sets the host address.
Port  Gets and sets the port used to connect to the host.
Protocol  Gets and sets the port used to connect to the host.
Timeout  Get and set the connection timeout threshold for this instance.
Are you a robot?
Your Email:
Create a Username:
Create a Password:
Forgot Password?
Validate Text: Captcha