ServerStreamPipe Class Reference

A server (listening) pipe for StreamPipe connections. More...

#include <ServerStreamPipe.h++>

List of all members.

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.

Detailed Description

A server (listening) pipe for StreamPipe connections.

Author:
Mark Lindner

Constructor & Destructor Documentation

ServerStreamPipe ( const String path,
uint_t  backlog = 3 
)

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

Parameters:
path The path.
backlog The size of the connection backlog.
~ServerStreamPipe (  )  throw ()

Destructor.

Shuts down the pipe.


Member Function Documentation

void accept ( StreamPipe pipe  )  throw (IOException)

Accept a connection on the stream pipe.

This method blocks until a new connection is pending.

Parameters:
pipe A pipe object which will be initialized to represent the newly-established connection.
Exceptions:
IOException If an error occurs.
void listen (  )  throw (IOException)

Begin listening for connections on the pipe.

Exceptions:
IOException If an error occurs.
void shutdown (  )  throw ()

Shut down the pipe.


The documentation for this class was generated from the following files:
Generated on Sat Nov 26 16:49:09 2011 for libcommonc++ by  doxygen 1.6.3