mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
@@ -97,9 +97,7 @@ class CTCPListener : public CListener {
|
||||
class CUnixListener : public CListener {
|
||||
public:
|
||||
CUnixListener(const CString& sPath, const CString& sURIPrefix, bool bSSL,
|
||||
EAcceptType eAccept)
|
||||
: CListener(sURIPrefix, bSSL, eAccept),
|
||||
m_sPath(sPath) {}
|
||||
EAcceptType eAccept, const CString& sGid, const CString& sMode);
|
||||
~CUnixListener();
|
||||
|
||||
CUnixListener(const CUnixListener&) = delete;
|
||||
@@ -107,6 +105,8 @@ class CUnixListener : public CListener {
|
||||
|
||||
// Getters
|
||||
const CString& GetPath() const { return m_sPath; }
|
||||
const CString& GetGroup() const { return m_sGid; }
|
||||
CString GetMode() const;
|
||||
// !Getters
|
||||
|
||||
bool Listen() override;
|
||||
@@ -114,6 +114,8 @@ class CUnixListener : public CListener {
|
||||
|
||||
protected:
|
||||
CString m_sPath;
|
||||
CString m_sGid;
|
||||
int m_iMode;
|
||||
};
|
||||
|
||||
class CRealListener : public CZNCSock {
|
||||
|
||||
@@ -209,8 +209,9 @@ class CZNC : private CCoreTranslationMixin {
|
||||
bool AddTCPListener(unsigned short uPort, const CString& sBindHost,
|
||||
const CString& sURIPrefix, bool bSSL, EAddrType eAddr,
|
||||
CListener::EAcceptType eAccept, CString& sError);
|
||||
bool AddUnixListener(const CString& sPath, const CString& sURIPrefix, bool bSSL,
|
||||
CListener::EAcceptType eAccept, CString& sError);
|
||||
bool AddUnixListener(const CString& sPath, const CString& sURIPrefix,
|
||||
bool bSSL, CListener::EAcceptType eAccept,
|
||||
const CString& sGroup, const CString& sMode, CString& sError);
|
||||
bool DelListener(CListener*);
|
||||
|
||||
// For backwards-compatibility TODO: Remove
|
||||
|
||||
Reference in New Issue
Block a user