A server (listening) pipe for StreamPipe connections. More...
#include <ServerStreamPipe.h++>
Public Member Functions | |
| ServerStreamPipe (const String &path, uint_t backlog=3) | |
| Construct a new ServerStreamPipe that will listen at the given path. | |
| ~ServerStreamPipe () throw () | |
| Destructor. | |
| void | listen () throw (IOException) |
| Begin listening for connections on the pipe. | |
| void | accept (StreamPipe &pipe) throw (IOException) |
| Accept a connection on the stream pipe. | |
| void | shutdown () throw () |
| Shut down the pipe. | |
A server (listening) pipe for StreamPipe connections.
| ServerStreamPipe | ( | const String & | path, | |
| uint_t | backlog = 3 | |||
| ) |
Construct a new ServerStreamPipe that will listen at the given path.
| path | The path. | |
| backlog | The size of the connection backlog. |
| ~ServerStreamPipe | ( | ) | throw () |
Destructor.
Shuts down the pipe.
| void accept | ( | StreamPipe & | pipe | ) | throw (IOException) |
Accept a connection on the stream pipe.
This method blocks until a new connection is pending.
| pipe | A pipe object which will be initialized to represent the newly-established connection. |
| IOException | If an error occurs. |
| void listen | ( | ) | throw (IOException) |
Begin listening for connections on the pipe.
| IOException | If an error occurs. |
| void shutdown | ( | ) | throw () |
Shut down the pipe.
1.6.3