{
struct rpc_fail_reply header;
- fprintf(stderr, "Sending RPC failure status %d\n", stat);
-
header.xid = htonl(req->xid);
header.type = htonl(1); /* REPLY */
header.stat = htonl(MSG_ACCEPTED);
header.accept_stat = 0;
gsize msg_size = str->len;
- printf("Have an RPC reply of size %zd bytes\n", msg_size);
uint32_t fragment = htonl((msg_size + sizeof(header)) | 0x80000000);
async_rpc_write(req->connection, (const char *)&fragment, sizeof(fragment));
async_rpc_write(req->connection, (const char *)&header, sizeof(header));
if (buf - msg->str > msg->len)
return FALSE;
- printf("Dispatching RPC procedure %d...\n", proc);
-
req->raw_args = msg;
req->raw_args_header_bytes = buf - msg->str;
req->req_proc = ntohl(header->proc);