Class TcpClientModule
Represents a LisRT module for a TCP/IP client.
Implements
Caliburn.Micro.INotifyPropertyChangedEx
System.ComponentModel.INotifyPropertyChanged
System.IDisposable
Inherited Members
Caliburn.Micro.PropertyChangedBase.Refresh()
Caliburn.Micro.PropertyChangedBase.NotifyOfPropertyChange(System.String)
Caliburn.Micro.PropertyChangedBase.NotifyOfPropertyChange<TProperty>(System.Linq.Expressions.Expression<System.Func<TProperty>>)
Caliburn.Micro.PropertyChangedBase.OnUIThread(System.Action)
Caliburn.Micro.PropertyChangedBase.Set<T>(T, T, System.String)
Caliburn.Micro.PropertyChangedBase.IsNotifying
Caliburn.Micro.PropertyChangedBase.PropertyChanged
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Namespace: Loehnert.Lisrt.Communication.Tcp
Assembly: Loehnert.Lisrt.Communication.dll
Syntax
public class TcpClientModule : CommunicationBase, ICommunication, ILisrtModule, IInitializable, INotifyPropertyChangedEx, INotifyPropertyChanged, IHasServiceView, IDisposable
Constructors
TcpClientModule(String)
Initializes a new instance of the TcpClientModule class.
Declaration
public TcpClientModule(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | Module name. |
Properties
Address
Gets or sets the address of the server to connect to.
Declaration
[Configuration("", Description = "Address for the TCP connection. Example: '127.0.0.1' or 'localhost'")]
public string Address { get; set; }
Property Value
Type | Description |
---|---|
String |
Icon
Gets an icon which is representative for the module.
Declaration
public override Uri Icon { get; }
Property Value
Type | Description |
---|---|
Uri |
Overrides
IsConnected
Gets a value indicating whether the TCP/IP client is connected.
Declaration
public override bool IsConnected { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Port
Gets or sets the port to connect.
Declaration
[Configuration(0, Description = "Port for TCP connection")]
public int Port { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Stream
Gets the stream.
Declaration
protected override Stream Stream { get; }
Property Value
Type | Description |
---|---|
System.IO.Stream |
Overrides
Methods
Close()
Closes the connection.
Declaration
public override void Close()
Overrides
Exit()
De initializes the module.
Declaration
public override void Exit()
Overrides
Open()
Opens a TCP/IP connection.
Declaration
public override void Open()
Overrides
ShowServiceView()
Shows the service view for this module.
Declaration
public override void ShowServiceView()
Overrides
Implements
Caliburn.Micro.INotifyPropertyChangedEx
System.ComponentModel.INotifyPropertyChanged
System.IDisposable