projects
/
invirt/third/libt4.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Type cleanups
[invirt/third/libt4.git]
/
rpc
/
rpctest.cc
diff --git
a/rpc/rpctest.cc
b/rpc/rpctest.cc
index
8aed748
..
c381745
100644
(file)
--- a/
rpc/rpctest.cc
+++ b/
rpc/rpctest.cc
@@
-81,7
+81,7
@@
void
testmarshall()
{
marshall m;
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;
m.pack_req_header(rh);
VERIFY(m.size()==RPC_HEADER_SZ);
int i = 12345;
@@
-97,7
+97,7
@@
testmarshall()
VERIFY(sz == (int)(RPC_HEADER_SZ+sizeof(i)+sizeof(l)+s.size()+sizeof(int)));
unmarshall un(b,sz);
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;
un.unpack_req_header(&rh1);
VERIFY(memcmp(&rh,&rh1,sizeof(rh))==0);
int i1;
@@
-203,7
+203,7
@@
simple_tests(rpcc *c)
int xx = 0;
intret = c->call_timeout(23, rpcc::to(3000), xx, 77);
VERIFY(intret == 0 && xx == 78);
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)
{
// specify a timeout value to an RPC that should succeed (tcp)
{
@@
-211,7
+211,7
@@
simple_tests(rpcc *c)
std::string rep;
c->call_timeout(22, rpcc::to(3000), rep, arg, (std::string)"x");
VERIFY(rep.size() == 1001);
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
}
// huge RPC