Packagecom.pcbsys.nirvana.client.p2p
Classpublic class nEventService
InheritancenEventService Inheritance nService Inheritance Object

This class implements the end point of an event based P2P connection. It allows the user to send and receive nConsumeEvents



Public Properties
 PropertyDefined By
 InheritedisClosed : Boolean
[read-only] Returns a flag indicating if the service has been closed with the close() method
nService
 InheritedisConnected : Boolean
[read-only] Returns whether the service is physically connected to the realm
nService
 InheritedserviceInformation : nServiceInfo
[read-only] Returns the description of the service connected to.
nService
 Inheritedsession : nSession
[read-only] Returns the nSession used within this p2p instance
nService
 InheritedstateListener : nServiceStateListener
Return the state listener associated with this service
nService
Public Methods
 MethodDefined By
  
close():void
[override] Closes the service and informs the remote service that it has been closed.
nEventService
  
write(event:nConsumeEvent):void
Writes an nConsumeEvent to the remote P2P service.
nEventService
Method Detail
close()method
override public function close():void

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

write()method 
public function write(event:nConsumeEvent):void

Writes an nConsumeEvent to the remote P2P service.

Parameters
event:nConsumeEvent — An nConsumeEvent to send to the remote P2P service