- com
- pcbsys
- nirvana
- client
- p2p
- nStreamService
This class implements the end point of a stream based P2P connection. More...
Public Member Functions | |
void | close () throws IOException |
Closes the service and informs the remote service that it has been closed. More... | |
InputStream | getInputStream () |
Returns the input stream that can be used to read from the remote service. More... | |
nOutOfBandService | getOutOfBandService () |
This function returns an nOutOfBandService. More... | |
OutputStream | getOutputStream () |
Returns the output stream that can be used to write to the remote service. More... | |
![]() | |
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 implements the end point of a stream based P2P connection.
It offers an InputStream and an OutputStream to enable each end of the pipe to communicate with each other.
void com.pcbsys.nirvana.client.p2p.nStreamService.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 |
InputStream com.pcbsys.nirvana.client.p2p.nStreamService.getInputStream | ( | ) |
Returns the input stream that can be used to read from the remote service.
nOutOfBandService com.pcbsys.nirvana.client.p2p.nStreamService.getOutOfBandService | ( | ) |
This function returns an nOutOfBandService.
An out of band (OOB) service can be used to pass flow/control information between the remote P2P service.
OutputStream com.pcbsys.nirvana.client.p2p.nStreamService.getOutputStream | ( | ) |
Returns the output stream that can be used to write to the remote service.