Table of Contents

Class TcpClientModule

Namespace
Loehnert.Lisrt.Communication.Tcp
Assembly
Loehnert.Lisrt.Communication.dll

Represents a LisRT module for a TCP/IP client.

public class TcpClientModule : CommunicationBase, ICommunication, ILisrtModule, IInitializable, INotifyPropertyChangedEx, INotifyPropertyChanged, IHasServiceView, IDisposable
Inheritance
PropertyChangedBase
TcpClientModule
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

TcpClientModule(string)

Initializes a new instance of the TcpClientModule class.

public TcpClientModule(string name)

Parameters

name string

Module name.

Properties

Address

Gets or sets the address of the server to connect to.

[Configuration("", Description = "Address for the TCP connection. Example: '127.0.0.1' or 'localhost'")]
public string Address { get; set; }

Property Value

string

Icon

Gets an icon which is representative for the module.

public override Uri Icon { get; }

Property Value

Uri

IsConnected

Gets a value indicating whether the TCP/IP client is connected.

public override bool IsConnected { get; }

Property Value

bool

Port

Gets or sets the port to connect.

[Configuration(0, Description = "Port for TCP connection")]
public int Port { get; set; }

Property Value

int

Stream

Gets the stream.

protected override Stream Stream { get; }

Property Value

Stream

Methods

Close()

Closes the connection.

public override void Close()

Exit()

De initializes the module.

public override void Exit()

Open()

Opens a TCP/IP connection.

public override void Open()

ShowServiceView()

Shows the service view for this module.

public override void ShowServiceView()