libcommonc++  0.7
ServerStreamPipe Class Reference

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...
 

Detailed Description

A server (listening) pipe for StreamPipe connections.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ ServerStreamPipe()

ServerStreamPipe ( const String path,
uint_t  backlog = 3 
)

Construct a new ServerStreamPipe that will listen at the given path.

Parameters
pathThe path.
backlogThe size of the connection backlog.

◆ ~ServerStreamPipe()

Destructor.

Shuts down the pipe.

Member Function Documentation

◆ accept()

void accept ( StreamPipe pipe)

Accept a connection on the stream pipe.

This method blocks until a new connection is pending.

Parameters
pipeA pipe object which will be initialized to represent the newly-established connection.
Exceptions
IOExceptionIf an error occurs.

◆ listen()

void listen ( )

Begin listening for connections on the pipe.

Exceptions
IOExceptionIf an error occurs.

◆ shutdown()

void shutdown ( )

Shut down the pipe.


The documentation for this class was generated from the following files: