|
ION Java User's Guide: ION Java Class and Method Reference |
|
The getConnectionType() method returns the type of connection in use.
public final int getConnectionType()
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.
None
None
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)