SocketDriver
The SocketDriver allows for easy access to socket facilities and is especially useful when creating interfaces to existing protocols.
Constructors
|
Constructor
|
Initializes a new instance of the SocketDriver class.
|
Destructors
|
Destructor
|
Closes the current connection on destruction of the object. |
Methods
|
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.
|
|
ReadLine
|
Returns a line from the connection.
|
|
Write
|
Write the specified string data argument to the connection.
|
Properties
|
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. |
|