System documentation of the GNU Image-Finding Tool

Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members

CDomainSocket Class Reference

A structure that opens/closes a domain socket for a given path and sets the file permissions to 0600. More...

#include <CDomainSocket.h>

Inheritance diagram for CDomainSocket:

CSocket List of all members.

Public Member Functions

 CDomainSocket ()
 constructor
 CDomainSocket (const string &inPath)
 constructor: copy the path, otherwise do nothing
 ~CDomainSocket ()
 destroy this: close the socket
bool listenToPath (const string &inPath)
 set the path of the domain socket and listen to it
string getPath () const
 get the path of the socket
virtual void serveStream (int)
 Serve from the socket that accepted.
virtual bool acceptAndServe ()
 accept this socket and serve
 operator bool () const

Protected Attributes

bool mIsInitialized
 has this been initialized ?
string mPath
 the path to the socket (visible in the file system)
sockaddr_un mSocketStructure
 the socket structure of the local socket

Detailed Description

A structure that opens/closes a domain socket for a given path and sets the file permissions to 0600.

This class will be used with select to be the entry to the local search engine.

See also:
: CMultiServer


The documentation for this class was generated from the following file:
Need for discussion? Want to contribute? Contact
help-gift@gnu.org Generated using Doxygen