public class SimpleIP extends Object
© Devmel SDK (java) ©
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes all communications to the device
|
void |
finalize() |
int |
getDataSizeLimit()
Returns the data size limit of the IP Device
|
boolean |
getExceptions()
Returns the exception throw management status
|
SimpleIPException |
getLastException()
Returns the last SimpleIPException
|
boolean |
getLock()
Returns whether the IP Device is locked or not.
|
int |
getTimeout()
Returns the timeout
|
int |
getVersion()
Returns the version number of the IP Device
|
boolean |
isLocalConnected()
Returns whether the IP Device is local or distant.
|
boolean |
isOpen()
Returns whether the socket is open or not
|
void |
setExceptions(boolean enable)
Sets exception throw management
|
void |
setLock(boolean lock)
Lock or Unlock the IP Device to get exclusive access
|
void |
setTimeout(int timeout)
Sets the connection timeout
|
public void close()
public int getDataSizeLimit()
public boolean getExceptions()
public SimpleIPException getLastException()
public boolean getLock()
public int getTimeout()
public int getVersion()
public boolean isLocalConnected()
public boolean isOpen()
public void setExceptions(boolean enable)
enable
- true to enable exceptions, false otherwisepublic void setLock(boolean lock)
lock
- whether to lock or unlock thepublic void setTimeout(int timeout)
timeout
- Milliseconds timeout