X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=nfs3%2Fnfs3_prot.h;h=1b8352bc992033a2882791dc6e46db879ec614af;hb=1edfd0c0070b18a6837385a9fd11ba759202495e;hp=1a442bada7445e14b1a20265af2cda749782dde4;hpb=50c08ba526a6638e8e3c4eec0503365a2c110a85;p=bluesky.git diff --git a/nfs3/nfs3_prot.h b/nfs3/nfs3_prot.h index 1a442ba..1b8352b 100644 --- a/nfs3/nfs3_prot.h +++ b/nfs3/nfs3_prot.h @@ -657,6 +657,16 @@ typedef struct { /* Mutex protecting send operations on the socket (to ensure that replies * are not accidentally interleaved). */ GMutex *send_lock; + + /* Is this a UDP connection? */ + gboolean udp_transport; + + /* For UDP connections only, the address of the sender. */ + struct sockaddr_in peer; + + /* For UDP only, a buffer for accumulating the full contents of a message + * before it is sent */ + GString *sendbuf; } RPCConnection; /* Linked list of cleanup functions to call when a request is completed. */ @@ -834,6 +844,8 @@ extern bool_t xdr_commit3args (XDR *, commit3args*); extern bool_t xdr_commit3resok (XDR *, commit3resok*); extern bool_t xdr_commit3res (XDR *, commit3res*); +extern void xdr_string_create(XDR *xdrs, GString *string, enum xdr_op op); + #ifdef __cplusplus } #endif