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, DOFConnectionConnectOperationListener operationListener )
Parameters
- timeout
- Type: SystemInt32
Maximum time to wait, in milliseconds, for the connection to be established before calling the listener's complete() method. Note, however, that the connection may still occur if the underlying transport cannot cancel the connection request. Must be >= 0. Zero is allowed, in which case the listener's complete() is immediately called indicating the current state. - operationListener
- Type: org.opendof.core.oalDOFConnectionConnectOperationListener
An associated completion listener. May be null.
Return Value
Type: DOFOperationConnectThe new operation, or null if there is a related server that won't start or a related connection that won't open.
Remarks
See Also