More logging clean-ups. Static type-checking for RPC calls and
[invirt/third/libt4.git] / rpc / connection.cc
index 315a82e..e269a3d 100644 (file)
@@ -160,7 +160,7 @@ bool connection::writepdu() {
 bool connection::readpdu() {
     IF_LEVEL(5) LOG("the receive buffer has length " << rpdu_.buf.size());
     if (!rpdu_.buf.size()) {
-        rpc_sz_t sz1;
+        rpc_protocol::rpc_sz_t sz1;
         ssize_t n = fd_.read(sz1);
 
         if (n == 0)
@@ -178,7 +178,7 @@ bool connection::readpdu() {
 
         size_t sz = ntoh(sz1);
 
-        if (sz > MAX_PDU) {
+        if (sz > rpc_protocol::MAX_PDU) {
             IF_LEVEL(2) LOG("read pdu TOO BIG " << sz << " network order=" << hex << sz1);
             return false;
         }