Returns the state of the connection.
byte Connection.getState() throws ULjException
The following example demonstrates how to check the connection state and release the connection.
if( _conn.getState() == Connection.CONNECTED ){ _conn.release(); }