Requests that a connection be opened.
Namespace: org.opendof.core.transport
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax
C#
Connection open( ConnectionConfig config, DOFAddress peer, TransportHandler handler, DOFConnectionType type, ConnectionCallback context )
Parameters
- config
- Type: org.opendof.core.transportConnectionConfig
Transport specific configuration. - peer
- Type: org.opendof.core.oalDOFAddress
The peer address representing the remote end of the connection. - handler
- Type: org.opendof.core.transportTransportHandler
The associated transport handler for the connection. Once the open succeeds the handler opened method must be called with the connection object that represents this open. - type
- Type: org.opendof.core.oalDOFConnectionType
The type of connection. - context
- Type: org.opendof.core.transportConnectionCallback
The open context. This context must be associated with the connection object that represents this open.
Return Value
Type: Connectionthe connection object that represents this connection.
Exceptions
Exception | Condition |
---|---|
Exception | If a connection could not be opened. |
Remarks
See Also