NEURON
bbslsrv2.h
Go to the documentation of this file.
1 #ifndef bbslsrv2_h
2 #define bbslsrv2_h
3 
4 #include <InterViews/resource.h>
5 
6 void bbs_handle();
7 
9  public:
11  virtual ~BBSDirectServer();
12 
13  void post(const char* key);
14  bool look(const char* key);
15  bool look_take(const char* key);
16  bool take_pending(const char* key, int* cid);
17  void put_pending(const char* key, int cid);
19  static void handle(); // all remote requests
20  static void handle1();
21  void start();
22  void done();
23 
24  void post_todo(int parentid, int cid);
25  void context(int ncid, int* cids);
26  bool send_context(int cid); // sends if not sent already
27  void post_result(int id);
29  int look_take_result(int parentid);
30 
31  private:
32  void add_looking_todo(int cid);
33 
34  private:
35  int next_id_;
38 };
39 
40 #endif
void bbs_handle()
Definition: datapath.cpp:33
int look_take_result(int parentid)
void add_looking_todo(int cid)
bool look(const char *key)
int context_buf_
Definition: bbslsrv2.h:36
void context(int ncid, int *cids)
bool look_take(const char *key)
static void handle()
void post_todo(int parentid, int cid)
void post(const char *key)
void put_pending(const char *key, int cid)
static void handle1()
virtual ~BBSDirectServer()
static BBSDirectServer * server_
Definition: bbslsrv2.h:18
bool send_context(int cid)
bool take_pending(const char *key, int *cid)
int remaining_context_cnt_
Definition: bbslsrv2.h:37
void post_result(int id)
#define key
Definition: spt2queue.cpp:20