~ubuntu-branches/debian/sid/monopd/sid

« back to all changes in this revision

Viewing changes to src/main.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Schepler
  • Date: 2006-08-12 17:05:23 UTC
  • mfrom: (2.1.1 dapper)
  • Revision ID: james.westby@ubuntu.com-20060812170523-scgnd675p5jpg7lw
Tags: 0.9.3-2
* New patch monopd-0.9.3-dosfix.diff for CVE-2006-1046:
  Fixes a remote DOS vulnerability which could cause the daemon to eat up
  CPU time on the server.  Closes: #355797.
* Bump Standards-Version to 3.7.2 (no changes needed).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright (c) 2001-2002 Rob Kaper <cap@capsi.com>,
 
1
// Copyright (c) 2001-2004 Rob Kaper <cap@capsi.com>,
2
2
//               2001 Erik Bourget <ebourg@cs.mcgill.ca>
3
3
//
4
4
// This program is free software; you can redistribute it and/or
22
22
class Socket;
23
23
 
24
24
#include <string>
 
25
#include <libcapsinetwork/listener.h>
 
26
 
 
27
class MonopdListener : public Listener
 
28
{
 
29
public:
 
30
        MonopdListener( MonopdServer *server );
 
31
        void socketHandler( Socket *socket, const std::string &data = "" );
 
32
 
 
33
private:
 
34
        Listener *m_listener;
 
35
        MonopdServer *m_server;
 
36
};
25
37
 
26
38
int main(int, char **);
27
 
void socket_handler(Socket *, std::string data);
28
39
 
29
40
#endif