X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/5d99dbf06a14904944f5593c63705934bdfdcfb7..ba03b19875aa2e3586e49b10904563cdd3b91de0:/rpc/rpc.h?ds=sidebyside diff --git a/rpc/rpc.h b/rpc/rpc.h index 5dabe4b..2b32e28 100644 --- a/rpc/rpc.h +++ b/rpc/rpc.h @@ -163,7 +163,7 @@ class rpcs : public chanmgr { 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 @@ -213,9 +213,9 @@ class rpcs : public chanmgr { 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);