ost::UnixSocket(3) | Library Functions Manual | ost::UnixSocket(3) |
ost::UnixSocket - Unix domain sockets are used for stream based connected sessions between processes on the same machine.
#include <unix.h>
Inherits ost::Socket.
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.
bool isPendingConnection (timeout_t
timeout=TIMEOUT_INF)
Used to wait for pending connection requests. virtual ~UnixSocket ()
Use base socket handler for ending this socket.
void close (void)
char * path
class UnixStream
class SocketPort
class unixstream
Unix domain sockets are used for stream based connected sessions between processes on the same machine.
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:
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:
Use base socket handler for ending this socket.
Referenced by isPendingConnection().
Referenced by ost::unixstream::open().
Used to wait for pending connection requests. not const -- jfc
References ost::Socket::isPending(), ost::Socket::pendingInput, and ~UnixSocket().
Referenced by ost::UnixStream::setTimeout(), and ost::UnixStream::unixstr().
Generated automatically by Doxygen for GNU CommonC++ from the source code.
Wed Oct 31 2018 | GNU CommonC++ |