com.pcbsys.nirvana.client.p2p.nServerService Class Reference

nServerService provides the interface to implement a P2P server. More...

Inheritance diagram for com.pcbsys.nirvana.client.p2p.nServerService:

com.pcbsys.nirvana.client.com.pcbsys.nirvana.client.nEventListener

Public Member Functions

nService accept ()
 Wait for service connections.
void close ()
 This will close the ServerService and remove all entries of the service from the server.
void go (nConsumeEvent evt)
 This method is asynchronously called by the nirvana client API to deliver an event to a registered subscriber.

Detailed Description

nServerService provides the interface to implement a P2P server.

This acts like a ServerSocket class in that when a new P2P client connects the accept method will return a new nService object. This nService object can then be used to communicate with the remote nService.


Member Function Documentation

nService com.pcbsys.nirvana.client.p2p.nServerService.accept (  ) 

Wait for service connections.

Returns:
A newly created service representing the remote service

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

This will close the ServerService and remove all entries of the service from the server.

It will also send a disconnect to all remote nServices

void com.pcbsys.nirvana.client.p2p.nServerService.go ( nConsumeEvent  evt  ) 

This method is asynchronously called by the nirvana client API to deliver an event to a registered subscriber.

Parameters:
evt The nConsumeEvent object specifying the event being delivered.

Implements com.pcbsys.nirvana.client.com.pcbsys.nirvana.client.nEventListener.