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

Manages the server side of a UA TCP channel.
상속: TcpChannel
파일 보기 프로젝트 열기: OPCFoundation/Misc-Tools 1 사용 예제들

공개 메소드들

메소드 설명
Attach ( uint channelId, Socket socket ) : void

Attaches the channel to an existing socket.

Reconnect ( TcpMessageSocket socket, uint requestId, uint sequenceNumber, X509Certificate2 clientCertificate, TcpChannelToken token, OpenSecureChannelRequest request ) : void

Handles a reconnect request.

SendResponse ( uint requestId, IServiceResponse response ) : void

Sends the response for the specified request.

SetRequestReceivedCallback ( TcpChannelRequestEventHandler callback ) : void

Sets the callback used to receive notifications of new events.

TcpServerChannel ( string contextId, UaTcpChannelListener listener, BufferManager bufferManager, TcpChannelQuotas quotas, X509Certificate2 serverCertificate, EndpointDescriptionCollection endpoints ) : System

Attaches the object to an existing socket.

보호된 메소드들

메소드 설명
ForceChannelFault ( Exception exception, uint defaultCode, string format ) : void

Forces the channel into a faulted state as a result of a fatal error.

ForceChannelFault ( ServiceResult reason ) : void

Forces the channel into a faulted state as a result of a fatal error.

ForceChannelFault ( uint statusCode, string format ) : void

Forces the channel into a faulted state as a result of a fatal error.

GetNewTokenId ( ) : uint

Returns a new token id.

HandleIncomingMessage ( uint messageType, ArraySegment messageChunk ) : bool

Processes an incoming message.

HandleSocketError ( ServiceResult result ) : void

Handles a socket error.

SendErrorMessage ( ServiceResult error ) : void

Sends an error message over the socket.

비공개 메소드들

메소드 설명
ChannelClosed ( ) : void

Closes the channel and releases resources.

Dispose ( bool disposing ) : void
OnChannelReconnected ( object state ) : void

Called to send queued responses after a reconnect.

OnCleanup ( object state ) : void

Called when the channel needs to be cleaned up.

ProcessCloseSecureChannelRequest ( uint messageType, ArraySegment messageChunk ) : bool

Processes an CloseSecureChannel request message.

ProcessHelloMessage ( uint messageType, ArraySegment messageChunk ) : bool
ProcessOpenSecureChannelRequest ( uint messageType, ArraySegment messageChunk ) : bool

Processes an OpenSecureChannel request message.

ProcessRequestMessage ( uint messageType, ArraySegment messageChunk ) : bool

Processes a request message.

SendOpenSecureChannelResponse ( uint requestId, TcpChannelToken token, OpenSecureChannelRequest request ) : void

Sends an OpenSecureChannel response.

SendServiceFault ( TcpChannelToken token, uint requestId, ServiceResult fault ) : void

Sends a fault response secured with the symmetric keys.

SendServiceFault ( uint requestId, ServiceResult fault ) : void

Sends a fault response secured with the asymmetric keys.

StartCleanupTimer ( ServiceResult reason ) : void

Starts a timer that will clean up the channel if it is not opened/re-opened.

메소드 상세

Attach() 공개 메소드

Attaches the channel to an existing socket.
public Attach ( uint channelId, Socket socket ) : void
channelId uint
socket Socket
리턴 void

ForceChannelFault() 보호된 메소드

Forces the channel into a faulted state as a result of a fatal error.
protected ForceChannelFault ( Exception exception, uint defaultCode, string format ) : void
exception System.Exception
defaultCode uint
format string
리턴 void

ForceChannelFault() 보호된 메소드

Forces the channel into a faulted state as a result of a fatal error.
protected ForceChannelFault ( ServiceResult reason ) : void
reason ServiceResult
리턴 void

ForceChannelFault() 보호된 메소드

Forces the channel into a faulted state as a result of a fatal error.
protected ForceChannelFault ( uint statusCode, string format ) : void
statusCode uint
format string
리턴 void

GetNewTokenId() 보호된 메소드

Returns a new token id.
protected GetNewTokenId ( ) : uint
리턴 uint

HandleIncomingMessage() 보호된 메소드

Processes an incoming message.
protected HandleIncomingMessage ( uint messageType, ArraySegment messageChunk ) : bool
messageType uint
messageChunk ArraySegment
리턴 bool

HandleSocketError() 보호된 메소드

Handles a socket error.
protected HandleSocketError ( ServiceResult result ) : void
result ServiceResult
리턴 void

Reconnect() 공개 메소드

Handles a reconnect request.
public Reconnect ( TcpMessageSocket socket, uint requestId, uint sequenceNumber, X509Certificate2 clientCertificate, TcpChannelToken token, OpenSecureChannelRequest request ) : void
socket TcpMessageSocket
requestId uint
sequenceNumber uint
clientCertificate System.Security.Cryptography.X509Certificates.X509Certificate2
token TcpChannelToken
request OpenSecureChannelRequest
리턴 void

SendErrorMessage() 보호된 메소드

Sends an error message over the socket.
protected SendErrorMessage ( ServiceResult error ) : void
error ServiceResult
리턴 void

SendResponse() 공개 메소드

Sends the response for the specified request.
public SendResponse ( uint requestId, IServiceResponse response ) : void
requestId uint
response IServiceResponse
리턴 void

SetRequestReceivedCallback() 공개 메소드

Sets the callback used to receive notifications of new events.
public SetRequestReceivedCallback ( TcpChannelRequestEventHandler callback ) : void
callback TcpChannelRequestEventHandler
리턴 void

TcpServerChannel() 공개 메소드

Attaches the object to an existing socket.
public TcpServerChannel ( string contextId, UaTcpChannelListener listener, BufferManager bufferManager, TcpChannelQuotas quotas, X509Certificate2 serverCertificate, EndpointDescriptionCollection endpoints ) : System
contextId string
listener UaTcpChannelListener
bufferManager BufferManager
quotas TcpChannelQuotas
serverCertificate System.Security.Cryptography.X509Certificates.X509Certificate2
endpoints EndpointDescriptionCollection
리턴 System