Class EasyClient

Establish a connection and communicate with an EasyHost

Namespace: EasyCommunication.Client.Connection

Assembly: EasyCommunication.dll

Syntax

Constructors

EasyClient()

Declaration

Properties

ClientConnected

Whether or not the Client is connected with an

Declaration

public bool ClientConnected { get; }

Property Value

Type

Description

System.Boolean

Connection

Declaration

public Connection? Connection { get; set; }

Property Value

Type

Description

System.Nullable<Connection>

EventHandler

EventHandler for EasyClient-events

Declaration

public ClientEventHandler EventHandler { get; }

Property Value

Type

Description

ClientEventHandler

Methods

ConnectToHost(IPAddress, Int32)

Declaration

public void ConnectToHost(IPAddress address, int port)

Parameters

Type

Name

Description

System.Net.IPAddress

address

IPAddress to connect to

System.Int32

port

Port to connect to

DisconnectFromHost()

Declaration

public void DisconnectFromHost()

SendData<T>(T)

Sends data to the connected EasyHost

Declaration

public SendStatus SendData<T>(T data)

Parameters

Type

Name

Description

T

data

Data to send

Returns

Type

Description

Type Parameters

Name

Description

T

Custom Type which has to be either JsonConvert'able or Serializable

Last updated

Was this helpful?