Table of Contents

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

string

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

int

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

host string

The specified host to connect to

port int

The specified port to connect via

Returns

bool

Returns true if the connection was successful and false if already connected