Glossary:
j2meP2PClient.nStreamService Class Reference
This class implements the end point of a stream based P2P connection. More...Inherits j2meP2PClient::nService.
Public Member Functions | |
| void | close () throws IOException |
| Closes the service and informs the remote service that it has been closed. | |
| InputStream | getInputStream () |
| Returns the input stream that can be used to read from the remote service. | |
| nOutOfBandService | getOutOfBandService () |
| This function returns an nOutOfBandService. | |
| OutputStream | getOutputStream () |
| Returns the output stream that can be used to write to the remote service. | |
Detailed Description
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.
- See also:
- nEventService
Member Function Documentation
| void j2meP2PClient.nStreamService.close | ( | ) | throws IOException |
Closes the service and informs the remote service that it has been closed.
- Exceptions:
-
IOException If unable to perform the close, see the message for further information
| InputStream j2meP2PClient.nStreamService.getInputStream | ( | ) |
Returns the input stream that can be used to read from the remote service.
- Returns:
- InputStream
| nOutOfBandService j2meP2PClient.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.
- Returns:
- Returns a new nOutOfBandService object connected with the remote service
- See also:
- nOutOfBandService
| OutputStream j2meP2PClient.nStreamService.getOutputStream | ( | ) |
Returns the output stream that can be used to write to the remote service.
- Returns:
- OutputStream
