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
 - 
      
      PropertyChangedBaseTcpClientModule
 
- Implements
 - 
      
      
      
      INotifyPropertyChangedEx
 
- Inherited Members
 - 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
 
Constructors
TcpClientModule(string)
Initializes a new instance of the TcpClientModule class.
public TcpClientModule(string name)
  Parameters
namestringModule 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
Icon
Gets an icon which is representative for the module.
public override Uri Icon { get; }
  Property Value
IsConnected
Gets a value indicating whether the TCP/IP client is connected.
public override bool IsConnected { get; }
  Property Value
Port
Gets or sets the port to connect.
[Configuration(0, Description = "Port for TCP connection")]
public int Port { get; set; }
  Property Value
Stream
Gets the stream.
protected override Stream Stream { get; }
  Property Value
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()