com.distinct.rpc.rpcbind
Class netbuf

java.lang.Object
  |
  +--com.distinct.rpc.rpcbind.netbuf
All Implemented Interfaces:
java.io.Serializable, XDRType

public class netbuf
extends java.lang.Object
implements XDRType

This class was automatically generated by Jrpcgen from the RPC/XDR file "rpcbind.x".
netbuf: was struct

See Also:
Serialized Form

Field Summary
 byte[] buf
           
 int maxlen
           
 
Constructor Summary
netbuf()
          Default constructor for objects of class netbuf.
netbuf(int arg_maxlen, byte[] arg_buf)
          Creates an object of class netbuf.
 
Method Summary
 void xdr_decode(XDRStream xdrs)
          Decodes an object of class netbuf in compliance to RFC 1832 (XDR).
 void xdr_encode(XDRStream xdrs)
          Encodes an object of class netbuf in compliance to RFC 1832 (XDR).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxlen

public int maxlen

buf

public byte[] buf
Constructor Detail

netbuf

public netbuf()
Default constructor for objects of class netbuf.


netbuf

public netbuf(int arg_maxlen,
              byte[] arg_buf)
Creates an object of class netbuf.

Parameters:
arg_maxlen - The value of the maxlen component.
arg_buf - The value of the buf component.
Method Detail

xdr_encode

public void xdr_encode(XDRStream xdrs)
Encodes an object of class netbuf in compliance to RFC 1832 (XDR).

Specified by:
xdr_encode in interface XDRType
Parameters:
xdrs - The XDR output stream.

xdr_decode

public void xdr_decode(XDRStream xdrs)
                throws RPCError
Decodes an object of class netbuf in compliance to RFC 1832 (XDR).

Specified by:
xdr_decode in interface XDRType
Parameters:
xdrs - The XDR input stream.
Throws:
RPCError - When the calls fails for any reason.