Skip to content

Conn Class

sequenze edited this page Jun 19, 2017 · 3 revisions

Implements the mechanisms to support the CONN connection scheme.

Inheritance Hierarchy

Object > ConnectionModeBase

Syntax

public sealed class Conn : ConnectionModeBase, IConnectionMode

Constructors

Name                                         Description
Conn(IProtocol,IEncoder) Initializes a new instance of the Conn class.

Methods

Name                                                   Description
ProcessRequest(IOperationMap) Waits for an incoming message, then executes the corresponding operation and transmits a response.
PerformRequest(IMessage) Sends a request and waits for a response. Finally, it closes the connection and returns the received message. This is a blocking operation.
ValidateResponse(IMessage) Validates the passed response. If the message is a response and the response code is OK the message is returned; otherwise an exception is thrown.
ValidateRequest(IMessage) Validates the passed Request. If the message is a request the message is returned; otherwise an exception is thrown.

See Also

ConnectionModeBase, IConnectionMode, IProtocol, IEncoder, IOperationMap, IMessage

Clone this wiki locally