Hi ,
I am trying to use XDR to encode an integer variable.
I am trying to use xdr_int function xdr_int(&xdrs, &i);
But to use this function I have to set XDR_ENCODE somewhere. I am unable to go about how to do this.
How should I proceed?
raghavendra83
0
Newbie Poster
Recommended Answers
Jump to Posthttp://www.kernel.org/doc/man-pages/online/pages/man3/xdr_int.3.html
This mentions XDR_ENCODE exactly twice. Try one of them.
If that fails, try the other one.
Jump to PostEr, so where ARE you putting the result?
If it isn't to a block of memory, or to a file, what's the point?
All 5 Replies
Salem
5,138
Posting Sage
raghavendra83
0
Newbie Poster
Salem
5,138
Posting Sage
raghavendra83
0
Newbie Poster
Salem
5,138
Posting Sage
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.