#include <bbslocal.h>
Public Member Functions | |
BBSLocal () | |
virtual | ~BBSLocal () |
virtual boolean | look (const char *) |
virtual void | take (const char *) |
virtual boolean | look_take (const char *) |
virtual int | upkint () |
virtual double | upkdouble () |
virtual void | upkvec (int, double *) |
virtual char * | upkstr () |
virtual char * | upkpickle (size_t *size) |
virtual void | pkbegin () |
virtual void | pkint (int) |
virtual void | pkdouble (double) |
virtual void | pkvec (int, double *) |
virtual void | pkstr (const char *) |
virtual void | pkpickle (const char *, size_t) |
virtual void | post (const char *) |
virtual void | post_todo (int parentid) |
virtual void | post_result (int id) |
virtual int | look_take_result (int pid) |
virtual int | look_take_todo () |
virtual int | take_todo () |
virtual void | save_args (int) |
virtual void | return_args (int) |
virtual void | context () |
virtual void | start () |
virtual void | done () |
virtual void | perror (const char *) |
Private Attributes | |
KeepArgs * | keepargs_ |
BBSLocal::BBSLocal | ( | ) |
BBSLocal::~BBSLocal | ( | ) | [virtual] |
References keepargs_.
boolean BBSLocal::look | ( | const char * | key | ) | [virtual] |
Implements BBSImpl.
References b, BBSLocalServer::look(), and nil.
boolean BBSLocal::look_take | ( | const char * | key | ) | [virtual] |
Implements BBSImpl.
References b, BBSLocalServer::look_take(), and nil.
Implements BBSImpl.
References BBSLocalServer::look_take_result(), and nil.
int BBSLocal::look_take_todo | ( | ) | [virtual] |
Implements BBSImpl.
References BBSLocalServer::look_take_todo(), and nil.
Referenced by take_todo().
void BBSLocal::perror | ( | const char * | s | ) | [virtual] |
Reimplemented from BBSImpl.
References hoc_execerror().
Referenced by pkdouble(), pkint(), pkpickle(), pkstr(), pkvec(), take(), take_todo(), upkdouble(), upkint(), upkpickle(), upkstr(), and upkvec().
void BBSLocal::pkdouble | ( | double | x | ) | [virtual] |
Implements BBSImpl.
References perror(), and MessageValue::pkdouble().
Implements BBSImpl.
References perror(), and MessageValue::pkint().
void BBSLocal::pkpickle | ( | const char * | s, | |
size_t | n | |||
) | [virtual] |
Implements BBSImpl.
References perror(), MessageValue::pkint(), and MessageValue::pkpickle().
void BBSLocal::pkstr | ( | const char * | s | ) | [virtual] |
Implements BBSImpl.
References perror(), MessageValue::pkint(), and MessageValue::pkstr().
Implements BBSImpl.
References perror(), and MessageValue::pkvec().
void BBSLocal::post | ( | const char * | key | ) | [virtual] |
Implements BBSImpl.
References nil, and BBSLocalServer::post().
Implements BBSImpl.
References nil, and BBSLocalServer::post_result().
Implements BBSImpl.
References nil, and BBSLocalServer::post_todo().
Reimplemented from BBSImpl.
References assert, i, MessageValue::init_unpack(), and keepargs_.
Implements BBSImpl.
References keepargs_, nil, BBSLocalServer::post_todo(), and BBSImpl::working_id_.
void BBSLocal::start | ( | ) | [virtual] |
Reimplemented from BBSImpl.
References BBSImpl::is_master_, BBSImpl::mytid_, and BBSImpl::started_.
Referenced by BBSLocal().
void BBSLocal::take | ( | const char * | key | ) | [virtual] |
Implements BBSImpl.
References BBSImpl::execute(), id, BBSLocalServer::look_take(), BBSLocalServer::look_take_todo(), nil, and perror().
int BBSLocal::take_todo | ( | ) | [virtual] |
Implements BBSImpl.
References look_take_todo(), nil, and perror().
double BBSLocal::upkdouble | ( | ) | [virtual] |
Implements BBSImpl.
References perror(), MessageValue::upkdouble(), and x.
int BBSLocal::upkint | ( | ) | [virtual] |
Implements BBSImpl.
References i, perror(), and MessageValue::upkint().
char * BBSLocal::upkpickle | ( | size_t * | size | ) | [virtual] |
Implements BBSImpl.
References assert, perror(), s, MessageValue::upkint(), and MessageValue::upkpickle().
char * BBSLocal::upkstr | ( | ) | [virtual] |
Implements BBSImpl.
References perror(), s, MessageValue::upkint(), and MessageValue::upkstr().
Implements BBSImpl.
References perror(), and MessageValue::upkvec().
KeepArgs* BBSLocal::keepargs_ [private] |
Referenced by BBSLocal(), return_args(), save_args(), and ~BBSLocal().