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