Class TcpServerModule
Represents a LisRT TCP server module for a single client connection.
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 TcpServerModule : CommunicationBase, ICommunication, ILisrtModule, IInitializable, INotifyPropertyChangedEx, INotifyPropertyChanged, IHasServiceView, IDisposable
Remarks
A connection is closed when another client connects.
Constructors
TcpServerModule(String)
Initializes a new instance of the TcpServerModule class.
Declaration
public TcpServerModule(string moduleName)
Parameters
Type | Name | Description |
---|---|---|
String | moduleName | The name for the module. |
Properties
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 a client is connected.
Declaration
public override bool IsConnected { get; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
Port
Gets or sets the incoming port.
Declaration
[Configuration(0, Description = "Port for TCP connection")]
public int Port { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Stream
Gets the stream for receive and write operations.
Declaration
protected override Stream Stream { get; }
Property Value
Type | Description |
---|---|
System.IO.Stream |
Overrides
Methods
Close()
Closes the client connection and stops listening.
Declaration
public override void Close()
Overrides
Exit()
De initializes the module.
Declaration
public override void Exit()
Overrides
Initialize()
Initializes the module.
Declaration
public override void Initialize()
Overrides
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Throw when EndDelimiter is null. |
Open()
Starts listening on the Port.
Declaration
public override void Open()
Overrides
ShowServiceView()
Shows the service view.
Declaration
public override void ShowServiceView()
Overrides
Implements
Caliburn.Micro.INotifyPropertyChangedEx
System.ComponentModel.INotifyPropertyChanged
System.IDisposable