logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ost::UnixSocket - Unix domain sockets are used for stream based connected sessions between processes on

Author

       Generated automatically by Doxygen for GNU CommonC++ from the source code.

GNU CommonC++                                    Sun Dec 27 2020                              ost::UnixSocket(3)

Constructor & Destructor Documentation

ost::UnixSocket::UnixSocket(constchar*pathname,intbacklog=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.

       Parameterspathname pathname to socket file
           backlog size of connection request queue.

   virtualost::UnixSocket::~UnixSocket()[virtual]
       Use base socket handler for ending this socket.

Detailed Description

       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
           Alex Pavloff alex@pavloff.net

       bound server for Unix domain streams and sessions.

Member Data Documentation

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

Member Function Documentation

voidost::UnixSocket::close(void)[protected]boolost::UnixSocket::isPendingConnection(timeout_ttimeout=TIMEOUT_INF)[inline]
       Used to wait for pending connection requests. not const -- jfc

       References ost::Socket::isPending(), and ost::Socket::pendingInput.

Name

       ost::UnixSocket - Unix domain sockets are used for stream based connected sessions between processes on
       the same machine.

Synopsis

       #include <unix.h>

       Inherits ost::Socket.

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

   ProtectedMemberFunctions
       void close (void)

   ProtectedAttributes
       char * pathFriends
       class UnixStream
       class SocketPort
       class unixstreamAdditionalInheritedMembers

See Also