Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Examples  

ost::UnixSocket Class Reference

Unix domain sockets are used for stream based connected sessions between processes on the same machine. bound server for Unix domain streams and sessions. More...

#include <unix.h>

Inheritance diagram for ost::UnixSocket::

ost::Socket List of all members.

Public Methods

 UnixSocket (const char *pathname, int backlog=5)
 A Unix domain "server" is created as a Unix domain socket that is bound to a pathname and that has a backlog queue to listen for connection requests. More...

bool isPendingConnection (timeout_t timeout=TIMEOUT_INF)
 not const -- jfc. More...

virtual ~UnixSocket ()
 Use base socket handler for ending this socket. More...


Protected Methods

void close (void)

Protected Attributes

char* path

Friends

class  UnixStream
class  SocketPort
class  unixstream

Detailed Description

Unix domain sockets are used for stream based connected sessions between processes on the same machine. bound server for Unix domain streams and sessions.

An implicit and unique UnixSocket object exists in Common C++ to represent a bound Unix domain socket acting as a "server" for receiving connection requests. This class is not part of UnixStream because such objects normally perform no physical I/O (read or write operations) other than to specify a listen backlog queue and perform "accept" operations for pending connections.

Author:
Alex Pavloff <alex@pavloff.net>


Constructor & Destructor Documentation

ost::UnixSocket::UnixSocket ( const char * pathname,
int backlog = 5 )
 

A Unix domain "server" is created as a Unix domain socket that is bound to a pathname and that has a backlog queue to listen for connection requests.

If the server cannot be created, an exception is thrown.

Parameters:
pathname   pathname to socket file
backlog   size of connection request queue.

ost::UnixSocket::~UnixSocket ( ) [virtual]
 

Use base socket handler for ending this socket.


Member Function Documentation

void ost::UnixSocket::close ( void ) [protected]
 

bool ost::UnixSocket::isPendingConnection ( timeout_t timeout = TIMEOUT_INF ) [inline]
 

not const -- jfc.


Friends And Related Function Documentation

class SocketPort [friend]
 

class UnixStream [friend]
 

class unixstream [friend]
 


Member Data Documentation

char * ost::UnixSocket::path [protected]
 


The documentation for this class was generated from the following file:
Generated at Sat May 12 18:59:49 2007 for GNU CommonC++ by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001