6 * Copyright (C) 1987 by the Massachusetts Institute of Technology
7 * For copying and distribution information, please see the file
12 static char *rcsid_sms_call_c = "$Header$";
15 #include <mit-copyright.h>
16 #include "mr_private.h"
18 mr_do_call(params, reply)
19 struct mr_params *params;
20 struct mr_params **reply;
25 _mr_send_op = create_operation();
28 _mr_recv_op = create_operation();
30 initialize_operation(_mr_send_op, mr_start_send, (char *)params,
32 queue_operation(_mr_conn, CON_OUTPUT, _mr_send_op);
34 initialize_operation(_mr_recv_op, mr_start_recv, (char *)reply,
36 queue_operation(_mr_conn, CON_INPUT, _mr_recv_op);
38 /* Block until operation done. */
39 mr_complete_operation(_mr_send_op);
40 mr_complete_operation(_mr_recv_op);
42 if ((OP_STATUS(_mr_send_op) != OP_COMPLETE) ||
43 (OP_STATUS(_mr_recv_op) != OP_COMPLETE)) {