Class TCPClient
- Namespace
- NominalSystems.External
- Assembly
- NominalSystems.External.dll
The base class for all TCP Client Integrations
public class TCPClient : TCPBase
- Inheritance
-
TCPClient
- Inherited Members
Constructors
TCPClient()
Default constructor for the software
public TCPClient()
Fields
ServerHost
The server the client has connected to. The Length is zero when unconfigured or the close function has been called
public string ServerHost
Field Value
ServerPort
The port of the server the client has connected to. The value is less than zero if unconfigured or close function has been called
public int ServerPort
Field Value
Methods
Close()
Closes the connection with the TCP server
public bool Close()
Returns
- bool
Returns if the connection was successful closed
Connect(string, int)
Connects to the server with the given host and port
public bool Connect(string host, int port)
Parameters
Returns
- bool
Returns true if the connection was successful and false if already connected