00001 #include "xdr.h" 00002 00003 db__send_char(d) 00004 char d; 00005 { 00006 XDR xdrs; 00007 int stat; 00008 char c; 00009 00010 stat = DB_OK; 00011 c = d; 00012 00013 xdr_begin_send (&xdrs); 00014 if(!xdr_char (&xdrs, &c)) 00015 stat = DB_PROTOCOL_ERR; 00016 xdr_end_send (&xdrs); 00017 00018 if (stat == DB_PROTOCOL_ERR) 00019 db_protocol_error(); 00020 return stat; 00021 } 00022 00023 db__recv_char (d) 00024 char *d; 00025 { 00026 XDR xdrs; 00027 int stat; 00028 00029 stat = DB_OK; 00030 xdr_begin_recv (&xdrs); 00031 if(!xdr_char (&xdrs, d)) 00032 stat = DB_PROTOCOL_ERR; 00033 xdr_end_recv (&xdrs); 00034 00035 if (stat == DB_PROTOCOL_ERR) 00036 db_protocol_error(); 00037 return stat; 00038 }