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