]> git.sesse.net Git - greproxy/blob - protocol.h
Port greproxy to all the new classes and stuff.
[greproxy] / protocol.h
1 #ifndef _PROTOCOL_H
2 #define _PROTOCOL_H 1
3
4 #include <stdint.h>
5 #include <string>
6
7 class Protocol {
8 public:
9         virtual void send_packet(uint16_t proto, const std::string &data, int incoming_seq) = 0;
10         virtual int fd() const = 0;
11 };
12
13 #endif  // !defined(_PROTOCOL_H)