Server code - handler
class handler_srv : _crob(hush,handler) {
public:
handler_srv(const handler* x = 0) : _bdy((handler*)x) { }
protected:
void set_body(const handler* x) { _bdy = (handler*) x; }
handler* _body() const {
return (handler*) _bdy;
}
virtual hush::event* dispatch(hush::event* e, ENV);
private:
handler* _bdy;
};