source: subversion/applications/utils/tirex/backend-mapnik/networklistener.h @ 29342

Last change on this file since 29342 was 21122, checked in by jochen, 9 years ago

great cleanup and reorganisation of debian packages

File size: 884 bytes
Line 
1/*
2 * Tirex Tile Rendering System
3 *
4 * Mapnik rendering backend
5 *
6 * Originally written by Jochen Topf & Frederik Ramm.
7 *
8 */
9
10/**
11 * NetworkListener
12 *
13 * Class that handles the main network loop, waiting for input on the
14 * specified UDP socket, then calling the appropriate request handler
15 * for the type of request received.
16 */
17
18#ifndef networklistener_included
19#define networklistener_included
20
21#include <map>
22#include <string>
23
24#include "requesthandler.h"
25#include "mortal.h"
26#include "debuggable.h"
27
28#define MAX_DGRAM 0xffff
29
30class NetworkListener : public Mortal, public Debuggable
31{
32
33    public:
34
35    NetworkListener(int port, int sockfd, int parentfd, std::map<std::string, RequestHandler *> *handlers);
36    ~NetworkListener();
37
38    void run();
39
40    private:
41
42    std::map<std::string, RequestHandler *> *mpRequestHandlers;
43    int mSocket;
44    int mParent;
45
46};
47#endif
Note: See TracBrowser for help on using the repository browser.