1
#ifndef _TCPDISPATCHER_
2
#define _TCPDISPATCHER_
4
#include "Dispatchers/dispatcher/dispatcher"
5
#include "netbuffer/netbuffer"
6
#include "httpbuffer/httpbuffer"
7
#include "ipstore/ipstore"
9
class TcpDispatcher: public Dispatcher {
12
TcpDispatcher (int fd, struct in_addr ip);
14
virtual void execute();
15
virtual void dispatch();
16
virtual void handle();
18
unsigned readchunk (int src);
20
Httpbuffer &buf() { return netbuffer; }
23
Httpbuffer netbuffer; // same as netbuffer, but
24
// httpdispatcher reuses it