onConnectionFailure

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

Synopsis

For C++:
virtual void onConnectionFailure(host,  
 port,  
 reason); 
LPCTSTR host;
int port;
LPCTSTR reason;
 
For Java and C#:
virtual void onConnectionFailure(host,  
 port,  
 reason); 
String host;
int port;
String reason;
 

Parameters

host

The name of the host running the DataHub instance.

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