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

Property Value

Type

Description

System.Nullable<Connection>

EventHandler

EventHandler for EasyClient-events

Declaration

Property Value

Type

Description

ClientEventHandler

Methods

ConnectToHost(IPAddress, Int32)

Declaration

Parameters

Type

Name

Description

System.Net.IPAddress

address

IPAddress to connect to

System.Int32

port

Port to connect to

DisconnectFromHost()

Declaration

SendData<T>(T)

Sends data to the connected EasyHost

Declaration

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?