com.pcbsys.nirvana.client.p2p.nService Class Referenceabstract

This class provides a base for all P2P Services. More...

Inheritance diagram for com.pcbsys.nirvana.client.p2p.nService:
com.pcbsys.nirvana.client.p2p.nEventService com.pcbsys.nirvana.client.p2p.nOutOfBandService com.pcbsys.nirvana.client.p2p.nStreamService

Public Member Functions

void close ()
 Closes the service and informs the remote service that it has been closed. More...
 
nServiceInfo getServiceInfo ()
 Returns the description of the service connected to. More...
 
nServiceStateListener getStateListener ()
 Return the state listener associated with this service More...
 
bool isClosed ()
 Returns a flag indicating if the service has been closed with the More...
 
bool 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...
 

Detailed Description

This class provides a base for all P2P Services.

Member Function Documentation

void com.pcbsys.nirvana.client.p2p.nService.close ( )

Closes the service and informs the remote service that it has been closed.

Exceptions
Exceptionif unable to perform the close. See the message for further information
nServiceInfo com.pcbsys.nirvana.client.p2p.nService.getServiceInfo ( )

Returns the description of the service connected to.

Returns
Service description
nServiceStateListener com.pcbsys.nirvana.client.p2p.nService.getStateListener ( )

Return the state listener associated with this service

Returns
the state listener fo this service
bool com.pcbsys.nirvana.client.p2p.nService.isClosed ( )

Returns a flag indicating if the service has been closed with the

close() method.

Returns
Flag indictating if the service has been closed.
bool com.pcbsys.nirvana.client.p2p.nService.isConnected ( )

Returns whether the service is physically connected to the realm

Returns
true if connected or false otherwise
void com.pcbsys.nirvana.client.p2p.nService.setStateListener ( nServiceStateListener  listener)

Set the listener that will receive callbacks for state changes to the service

Parameters
listenerthe state listener