onConnectionSuccess

onConnectionSuccess — a virtual method invoked when a connection is established.

Syntax

For C++:

virtual void onConnectionSuccess(LPCTSTR  host,
 int  port);

For Java and C#:

virtual void onConnectionSuccess(String  host,
 int  port);

Parameters

host

The name of the host running the DataHub.

port

The connection port number.

Description

This virtual method is invoked when a connection is established. The default behaviour is to make a call to cancelReconnectionTimer.

See Also

onStatusChange, onConnectionFailure, cancelReconnectionTimer