~ubuntu-branches/ubuntu/precise/crossroads/precise

« back to all changes in this revision

Viewing changes to xr/Dispatchers/tcpdispatcher/tcpdispatcher

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ritter
  • Date: 2010-07-05 16:27:00 UTC
  • Revision ID: james.westby@ubuntu.com-20100705162700-0g08tfav8ee9y51u
Tags: upstream-2.65
ImportĀ upstreamĀ versionĀ 2.65

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _TCPDISPATCHER_
 
2
#define _TCPDISPATCHER_
 
3
 
 
4
#include "Dispatchers/dispatcher/dispatcher"
 
5
#include "netbuffer/netbuffer"
 
6
#include "httpbuffer/httpbuffer"
 
7
#include "ipstore/ipstore"
 
8
 
 
9
class TcpDispatcher: public Dispatcher {
 
10
public:
 
11
 
 
12
    TcpDispatcher (int fd, struct in_addr ip);
 
13
 
 
14
    virtual void execute();
 
15
    virtual void dispatch();
 
16
    virtual void handle();
 
17
 
 
18
    unsigned readchunk (int src);
 
19
 
 
20
    Httpbuffer &buf()                           { return netbuffer; }
 
21
 
 
22
private:
 
23
    Httpbuffer netbuffer;                       // same as netbuffer, but
 
24
                                                // httpdispatcher reuses it
 
25
};
 
26
 
 
27
#endif