testmarshall()
{
marshall m;
- req_header rh(1,2,3,4,5);
+ request_header rh{1,2,3,4,5};
m.pack_req_header(rh);
VERIFY(m.size()==RPC_HEADER_SZ);
int i = 12345;
VERIFY(sz == (int)(RPC_HEADER_SZ+sizeof(i)+sizeof(l)+s.size()+sizeof(int)));
unmarshall un(b,sz);
- req_header rh1;
+ request_header rh1;
un.unpack_req_header(&rh1);
VERIFY(memcmp(&rh,&rh1,sizeof(rh))==0);
int i1;
int xx = 0;
intret = c->call_timeout(23, rpcc::to(3000), xx, 77);
VERIFY(intret == 0 && xx == 78);
- printf(" -- no suprious timeout .. ok\n");
+ printf(" -- no spurious timeout .. ok\n");
// specify a timeout value to an RPC that should succeed (tcp)
{
std::string rep;
c->call_timeout(22, rpcc::to(3000), rep, arg, (std::string)"x");
VERIFY(rep.size() == 1001);
- printf(" -- no suprious timeout .. ok\n");
+ printf(" -- no spurious timeout .. ok\n");
}
// huge RPC