libcommonc++
0.7
|
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. More... | |
~ServerStreamPipe () | |
Destructor. More... | |
void | listen () |
Begin listening for connections on the pipe. More... | |
void | accept (StreamPipe &pipe) |
Accept a connection on the stream pipe. More... | |
void | shutdown () |
Shut down the pipe. More... | |
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 | ( | ) |
Destructor.
Shuts down the pipe.
void accept | ( | StreamPipe & | pipe | ) |
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 | ( | ) |
Begin listening for connections on the pipe.
IOException | If an error occurs. |
void shutdown | ( | ) |
Shut down the pipe.