Transportopen Method OpenDOF Object Access Library
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: Connection
the connection object that represents this connection.
Exceptions

ExceptionCondition
ExceptionIf a connection could not be opened.
Remarks

Requests that a connection be opened. The target address transport Class must match the Class of the transport or an Exception must be thrown. The method should be implemented non-blocking, meaning that it will return before the connection is completed.
See Also

Reference