~vanhoof/+junk/znc

« back to all changes in this revision

Viewing changes to Client.h

  • Committer: Bazaar Package Importer
  • Author(s): Patrick Matthäi
  • Date: 2009-07-24 13:46:00 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090724134600-uaxedj9f92i72ru1
Tags: 0.074-1
* New upstream release.
  - Bump urgency to high. This release fixes an high-impact directory
    traversal buf, where unpriviliged users can save about DCC SEND files on
    the server with the rights of the znc process. The attacker could also
    use the exploit to get a shell on the server.
    Closes: #537977
  - Use c-ares for DNS resolving, add libc-ares-dev and pkg-config as
    build-dependency.
* Merge 0.058-2+lenny2, 0.058-2+lenny3, 0.070-1~bpo40+1 and 0.070-1~bpo50+1
  changelog.
* Bump Standards-Version to 3.8.2 (no changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
#ifndef _CLIENT_H
10
10
#define _CLIENT_H
11
11
 
12
 
#include "Csocket.h"
 
12
#include "Socket.h"
13
13
#include "Utils.h"
14
14
#include "main.h"
15
15
 
68
68
        CClient*        m_pClient;
69
69
};
70
70
 
71
 
class CClient : public Csock {
 
71
class CClient : public CZNCSock {
72
72
public:
73
 
        CClient(const CString& sHostname, unsigned short uPort, int iTimeout = 60) : Csock(sHostname, uPort, iTimeout) {
 
73
        CClient(const CString& sHostname, unsigned short uPort, int iTimeout = 60) : CZNCSock(sHostname, uPort, iTimeout) {
74
74
                m_pUser = NULL;
75
75
                m_pTimeout = NULL;
76
76
                m_pIRCSock = NULL;
85
85
                SetMaxBufferThreshold(1024);
86
86
 
87
87
                StartLoginTimeout();
 
88
 
 
89
                SetNick("unknown-nick");
88
90
        }
89
91
 
90
92
        virtual ~CClient();
99
101
        bool HasNamesx() const { return m_bNamesx; }
100
102
        bool HasUHNames() const { return m_bUHNames; }
101
103
 
102
 
        void UserCommand(const CString& sCommand);
 
104
        void UserCommand(CString& sCommand);
103
105
        void StatusCTCP(const CString& sCommand);
104
106
        void IRCConnected(CIRCSock* pIRCSock);
105
107
        void IRCDisconnected();