blob: 9c4cc59e11f5bf1989ad867bed16ef0f6c6a6519 [file] [log] [blame]
Mark Sleee8540632006-05-30 09:24:40 +00001#ifndef T_SERVER_H
2#define T_SERVER_H
3
4#include "TDispatcher.h"
5
6class TServerOptions;
7
8/**
9 * Thrift server.
10 *
11 * @author Mark Slee <mcslee@facebook.com>
12 */
13class TServer {
14 public:
15 virtual ~TServer() {}
16 virtual void run() = 0;
17
18 protected:
19 TServer(TDispatcher* dispatcher, TServerOptions* options) :
20 dispatcher_(dispatcher), options_(options) {}
21
22 TDispatcher* dispatcher_;
23 TServerOptions* options_;
24};
25
26/**
27 * Class to encapsulate all generic server options.
28 */
29class TServerOptions {
30 public:
31 // TODO(mcslee): Fill in getters/setters here
32 protected:
33 // TODO(mcslee): Fill data members in here
34};
35
36#endif