Previous ION Java User's Guide: ION Java Class and Method Reference Next

getConnectionType()

The getConnectionType() method returns the type of connection in use.

Syntax

public final int getConnectionType()

Return Value

The function returns one of the following values:

These values are defined as constants in the IONCallableClient class definition. The example below shows how to compare the returned value with the value defined in the IONCallableClient class.

Arguments

None

Exceptions

None

Example

To determine whether the connection in use is a socket-only connection, use a statement like the following:

if( getConnectionType() == IONCallableClient.SOCK_CON )  

  IDL Online Help (March 06, 2007)