DOFConnectionbeginConnect Method (Int32)OpenDOF Object Access Library
Open a connection, waiting up to timeout for the connection to be established.

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

C#
public DOFOperationConnect beginConnect(
	int timeout
)

Parameters

timeout
Type: SystemInt32
Maximum time to wait, in milliseconds, for the connection to be established.

Return Value

Type: DOFOperationConnect
The new operation, or null if there is a related server that won't start or a related connection that won't open.
Remarks

Open a connection, waiting up to timeout for the connection to be established. However, control is returned to the caller while the connection is established. Note: Since there is no ConnectOperationListener DOFOperation.waitComplete() can be called on the returned operation to wait for it to complete.

We recommend 30 seconds for Type.POINT connections. Will also start any related server and open any related connection.

See Also

Reference