#include "thr_pool.h"
#include "marshall.h"
+#include "marshall_wrap.h"
#include "connection.h"
class rpc_const {
string buf; // the reply buffer
};
- unsigned int port_;
+ in_port_t port_;
unsigned int nonce_;
// provide at most once semantics by maintaining a window of replies
tcpsconn *listener_;
public:
- rpcs(unsigned int port, size_t counts=0);
+ rpcs(in_port_t port, size_t counts=0);
~rpcs();
- inline unsigned int port() { return listener_->port(); }
+ inline in_port_t port() { return listener_->port(); }
//RPC handler for clients binding
int rpcbind(unsigned int &r, int a);