Reopen a connection, waiting up to timeout for the connection to be reestablished.
Namespace: org.opendof.core.oal
Assembly: dof-oal (in dof-oal.dll) Version: 7.0.1.2
Syntax
C#
public void reconnect( int timeout )
Parameters
- timeout
- Type: SystemInt32
Maximum time to wait, in milliseconds, for the connection to be established. If this time passes without a connection then the routine will throw an exception and the request will be forgotten. Note, however, that the connection may still occur, and the listener notified, if the underlying transport cannot cancel the connection request. Must be >= 0. We recommend 30 seconds for Type.POINT connections.
Exceptions
Exception | Condition |
---|---|
DOFErrorException | This is thrown if the connection times out or if any other error occurs. Many different exception types may be thrown depending on the specific failure: DOFErrorException, DOFSecurityException or DOFAuthenticationException. |
DOFException |
Remarks
See Also