xdr.c

Go to the documentation of this file.
00001 #include "xdr.h"
00002 
00003 static FILE *_send, *_recv;
00004 
00005 void
00006 db__set_protocol_fds (send, recv)
00007     FILE *send, *recv;
00008 {
00009     _send = send;
00010     _recv = recv;
00011 }
00012 
00013 xdr_begin_send(xdrs)
00014     XDR *xdrs;
00015 {
00016     xdrstdio_create (xdrs, _send, XDR_ENCODE);
00017 }
00018 
00019 xdr_begin_recv(xdrs)
00020     XDR *xdrs;
00021 {
00022     xdrstdio_create (xdrs, _recv, XDR_DECODE);
00023 }
00024 
00025 xdr_end_send(xdrs)
00026     XDR *xdrs;
00027 {
00028     fflush(_send);
00029     xdr_destroy (xdrs);
00030 }
00031 
00032 xdr_end_recv(xdrs)
00033     XDR *xdrs;
00034 {
00035     xdr_destroy (xdrs);
00036 }

Generated on Mon Jan 1 19:49:05 2007 for GRASS by  doxygen 1.5.1