// internal handler registration
void reg1(proc_t proc, handler *);
- ThrPool* dispatchpool_;
- tcpsconn *listener_;
+ unique_ptr<ThrPool> dispatchpool_;
+ unique_ptr<tcpsconn> listener_;
public:
rpcs(in_port_t port, size_t counts=0);
template<class F, class C=void> void reg(proc_t proc, F f, C *c=nullptr) {
reg1(proc, marshalled_func<F, ReturnOnFailure>::wrap(f, c));
}
+
+ void start();
};
#endif