onConnectionFailure

onConnectionFailure — a virtual method invoked when a connection or attempt to connect fails.

Syntax

For C++:

virtual void onConnectionFailure(LPCTSTR  host,
 int  port,
 LPCTSTR  reason);

For Java and C#:

virtual void onConnectionFailure(String  host,
 int  port,
 String  reason);

Parameters

host

The name of the host running the DataHub.

port

The connection port number.

reason

The reason for the failure.

Description

This virtual method is invoked when a connection or attempt to connect fails. The default behaviour is to make a call to startReconnectionTimer.

See Also

onStatusChange, onConnectionSuccess, startReconnectionTimer