Packagecom.pcbsys.nirvana.client.p2p
Classpublic class nService
InheritancenService Inheritance Object
Implements nEventListener, nConnectionListener
Subclasses nEventService



Public Properties
 PropertyDefined By
  isClosed : Boolean
[read-only] Returns a flag indicating if the service has been closed with the close() method
nService
  isConnected : Boolean
[read-only] Returns whether the service is physically connected to the realm
nService
  serviceInformation : nServiceInfo
[read-only] Returns the description of the service connected to.
nService
  session : nSession
[read-only] Returns the nSession used within this p2p instance
nService
  stateListener : nServiceStateListener
Return the state listener associated with this service
nService
Public Methods
 MethodDefined By
  
close():void
Closes the service and informs the remote service that it has been closed.
nService
Public Constants
 ConstantDefined By
  EVENT_SERVICE_TYPE : int = 1
[static]
nService
Property Detail
isClosedproperty
isClosed:Boolean  [read-only]

Returns a flag indicating if the service has been closed with the close() method


Implementation
    public function get isClosed():Boolean
isConnectedproperty 
isConnected:Boolean  [read-only]

Returns whether the service is physically connected to the realm


Implementation
    public function get isConnected():Boolean
serviceInformationproperty 
serviceInformation:nServiceInfo  [read-only]

Returns the description of the service connected to.


Implementation
    public function get serviceInformation():nServiceInfo
sessionproperty 
session:nSession  [read-only]

Returns the nSession used within this p2p instance


Implementation
    public function get session():nSession
stateListenerproperty 
stateListener:nServiceStateListener

Return the state listener associated with this service


Implementation
    public function get stateListener():nServiceStateListener
    public function set stateListener(value:nServiceStateListener):void
Method Detail
close()method
public function close():void

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

Constant Detail
EVENT_SERVICE_TYPEConstant
public static const EVENT_SERVICE_TYPE:int = 1