Creates a
DOFConnection
that uses the specified configuration. The connection is associated with the DOF
instance that creates it, and only that DOF can route operations through it (see DOF).
This method may be used to create the following types of connections:
- Type.STREAM
- Type.DATAGRAM
- Type.DATAGRAM_STATELESS
- Type.GROUP . Use DOFServer.createConnection(Config) .
- Type.HUB . Use DOFServer.createConnection(Config) .
- Type.POINT . Use DOFConnection.createConnection(Config)
Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax
C#
public DOFConnection createConnection( DOFConnectionConfig config )
Parameters
- config
- Type: org.opendof.core.oalDOFConnectionConfig
An instance of Config that represents a source of configuration parameters for the DOFConnection. Use Builder to create an instance of DOFConnection.Config. This must not be null.
Return Value
Type: DOFConnectionA new instance of DOFConnection. The return value will be null if the configuration is invalid or if the DOF cannot accept the new DOFConnection.
See Also
Reference
Control.setTargetConnection(DOFConnection)