X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/4e881433f37417ccbda89c09ffdf936855d462d4..f0dcb6b97d6d40f67698d1f71ac26970f1776f82:/rpc/rpctest.cc?ds=inline diff --git a/rpc/rpctest.cc b/rpc/rpctest.cc index 4dd2af2..d4f53f4 100644 --- a/rpc/rpctest.cc +++ b/rpc/rpctest.cc @@ -23,9 +23,9 @@ static in_port_t port; class srv { public: int handle_22(string & r, const string a, const string b); - int handle_fast(int &r, const int a); - int handle_slow(int &r, const int a); - int handle_bigrep(string &r, const size_t a); + int handle_fast(int & r, const int a); + int handle_slow(int & r, const int a); + int handle_bigrep(string & r, const size_t a); }; namespace srv_protocol { @@ -44,23 +44,23 @@ namespace srv_protocol { // rpcs::reg() decides how to unmarshall by looking // at these argument types, so this function definition // does what a .x file does in SunRPC. -int srv::handle_22(string &r, const string a, string b) { +int srv::handle_22(string & r, const string a, string b) { r = a + b; return 0; } -int srv::handle_fast(int &r, const int a) { +int srv::handle_fast(int & r, const int a) { r = a + 1; return 0; } -int srv::handle_slow(int &r, const int a) { +int srv::handle_slow(int & r, const int a) { usleep(random() % 500); r = a + 2; return 0; } -int srv::handle_bigrep(string &r, const size_t len) { +int srv::handle_bigrep(string & r, const size_t len) { r = string(len, 'x'); return 0; }