This class provides a base for all P2P Services. More...
Public Member Functions | |
void | close () throws IOException |
Closes the service and informs the remote service that it has been closed. More... | |
final nServiceInfo | getServiceInfo () |
Returns the description of the service connected to. More... | |
nServiceStateListener | getStateListener () |
Return the state listener associated with this service. More... | |
final boolean | isClosed () |
Returns a flag indicating if the service has been closed with the close() method. More... | |
boolean | isConnected () |
Returns whether the service is physically connected to the realm. More... | |
void | setStateListener (nServiceStateListener listener) |
Set the listener that will receive callbacks for state changes to the service. More... | |
This class provides a base for all P2P Services.
void com.pcbsys.nirvana.client.p2p.nService.close | ( | ) | throws IOException |
Closes the service and informs the remote service that it has been closed.
IOException | if unable to perform the close. See the message for further information |
final nServiceInfo com.pcbsys.nirvana.client.p2p.nService.getServiceInfo | ( | ) |
Returns the description of the service connected to.
nServiceStateListener com.pcbsys.nirvana.client.p2p.nService.getStateListener | ( | ) |
Return the state listener associated with this service.
final boolean com.pcbsys.nirvana.client.p2p.nService.isClosed | ( | ) |
Returns a flag indicating if the service has been closed with the close()
method.
boolean com.pcbsys.nirvana.client.p2p.nService.isConnected | ( | ) |
Returns whether the service is physically connected to the realm.
void com.pcbsys.nirvana.client.p2p.nService.setStateListener | ( | nServiceStateListener | listener | ) |
Set the listener that will receive callbacks for state changes to the service.
listener | the state listener |