C# 클래스 Opc.Ua.Bindings.UaTcpChannelListener

Manages the connections for a UA TCP server.
상속: IDisposable, ITransportListener
파일 보기 프로젝트 열기: OPCFoundation/UA-.NETStandardLibrary 1 사용 예제들

공개 메소드들

메소드 설명
Close ( ) : void

Closes the listener and stops accepting connection.

Dispose ( ) : void

Frees any unmanaged resources.

Open ( Uri baseAddress, TransportListenerSettings settings, ITransportListenerCallback callback ) : void

Opens the listener and starts accepting connection.

Start ( ) : void

Starts listening at the specified port.

Stop ( ) : void

Stops listening.

UaTcpChannelListener ( ) : System

Initializes a new instance of the UaTcpChannelListener class.

비공개 메소드들

메소드 설명
ChannelClosed ( uint channelId ) : void

Called when a channel closes.

Dispose ( bool disposing ) : void
OnAccept ( object sender, SocketAsyncEventArgs e ) : void

Handles a new connection.

OnProcessRequestComplete ( IAsyncResult result ) : void
OnRequestReceived ( TcpServerChannel channel, uint requestId, IServiceRequest request ) : void

Handles requests arriving from a channel.

ReconnectToExistingChannel ( TcpMessageSocket socket, uint requestId, uint sequenceNumber, uint channelId, X509Certificate2 clientCertificate, TcpChannelToken token, OpenSecureChannelRequest request ) : bool

Binds a new socket to an existing channel.

메소드 상세

Close() 공개 메소드

Closes the listener and stops accepting connection.
Thrown if any communication error occurs.
public Close ( ) : void
리턴 void

Dispose() 공개 메소드

Frees any unmanaged resources.
public Dispose ( ) : void
리턴 void

Open() 공개 메소드

Opens the listener and starts accepting connection.
Thrown if any parameter is null. Thrown if any communication error occurs.
public Open ( Uri baseAddress, TransportListenerSettings settings, ITransportListenerCallback callback ) : void
baseAddress System.Uri The base address.
settings TransportListenerSettings The settings to use when creating the listener.
callback ITransportListenerCallback The callback to use when requests arrive via the channel.
리턴 void

Start() 공개 메소드

Starts listening at the specified port.
public Start ( ) : void
리턴 void

Stop() 공개 메소드

Stops listening.
public Stop ( ) : void
리턴 void

UaTcpChannelListener() 공개 메소드

Initializes a new instance of the UaTcpChannelListener class.
public UaTcpChannelListener ( ) : System
리턴 System