Connection InterfaceOpenDOF Object Access Library
The connection class encapsulates transport level implementation of a connection.

Namespace: org.opendof.core.transport
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax

C#
public interface Connection

The Connection type exposes the following members.

Methods

  NameDescription
Public methodclose
Request that a connection be closed.
Public methodgetConnectionConfig
Public methodgetConnectionType
Get the type of connection.
Public methodgetContext
Get the connections associated context.
Public methodgetPeerAddress
Return the peer address of the connection.
Public methodgetServer
Return the server associated with a given connection, or null if the connection is outbound.
Public methodgetTransport
Get the connection's associated transport handler.
Public methodisHandleAsync
Is the connection an async or blocking connection.
Public methodisOpen
Is the connection open?
Public methodisPointToPoint
Is the connection a point-to-point connection?
Public methodisSecure
Is the connection inherently secure.
Public methodsend
Send data to the specified address.
Public methodsetContext
Set the context data for a connection.
Top
Remarks

The connection class encapsulates transport level implementation of a connection. These connections can be inbound, outbound, or the representation of non-point-to-point connection such as a datagram server handling many peers.
See Also

Reference