Class ServerTransport
Inheritance
System.Object
ServerTransport
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.Glue
Assembly: NFX.dll
Syntax
public abstract class ServerTransport : Transport, IApplicationComponent, IDisposable, IService, INamed, IConfigurable, ILocalizedTimeProvider
Constructors
ServerTransport(Binding, ServerEndPoint)
Creates an instance of listener transport
Declaration
protected ServerTransport(Binding binding, ServerEndPoint serverEndpoint)
Parameters
Type | Name | Description |
---|---|---|
Binding | binding | |
ServerEndPoint | serverEndpoint |
ServerTransport(Binding, ServerTransport)
Creates instance of a transport that resulted from connection accept by listener. Not all technologies support listener/child transports (TCP does)
Declaration
protected ServerTransport(Binding binding, ServerTransport listener)
Parameters
Type | Name | Description |
---|---|---|
Binding | binding | |
ServerTransport | listener |
Properties
IsListener
Indicates whether this instance is the one that accepts connections. Depending on implementation listeners may allocate other transports after they accept incoming connect request (i.e. TCP)
Declaration
public bool IsListener { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Listener
Returns a listener transport that opened this one. If this is a listener transport then returns null. Not all technologies support listener/child transports (TCP does)
Declaration
public ServerTransport Listener { get; }
Property Value
Type | Description |
---|---|
ServerTransport |
ServerEndpoint
Returns server endpoint instance that opened this transport
Declaration
public ServerEndPoint ServerEndpoint { get; }
Property Value
Type | Description |
---|---|
ServerEndPoint |
Methods
DoSendResponse(ResponseMsg)
Override to send a response into remote client endpoint
Declaration
protected abstract bool DoSendResponse(ResponseMsg response)
Parameters
Type | Name | Description |
---|---|---|
ResponseMsg | response |
Returns
Type | Description |
---|---|
System.Boolean |
SendResponse(ResponseMsg)
Sends a response into remote client endpoint
Declaration
public bool SendResponse(ResponseMsg response)
Parameters
Type | Name | Description |
---|---|---|
ResponseMsg | response |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
System.IDisposable