jnr.posix
Class BaseMsgHdr

java.lang.Object
  extended by jnr.posix.BaseMsgHdr
All Implemented Interfaces:
MsgHdr

public abstract class BaseMsgHdr
extends Object
implements MsgHdr

Author:
Bob McWhirter

Field Summary
protected  jnr.ffi.Pointer memory
           
protected  jnr.posix.NativePOSIX posix
           
 
Constructor Summary
protected BaseMsgHdr(jnr.posix.NativePOSIX posix, jnr.ffi.StructLayout layout)
           
 
Method Summary
 CmsgHdr allocateControl(int dataLength)
           
 CmsgHdr[] allocateControls(int[] dataLengths)
           
 CmsgHdr[] getControls()
           
 ByteBuffer[] getIov()
           
 String getName()
           
 void setIov(ByteBuffer[] buffers)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jnr.posix.MsgHdr
getControlLen, getFlags, setFlags
 

Field Detail

posix

protected final jnr.posix.NativePOSIX posix

memory

protected final jnr.ffi.Pointer memory
Constructor Detail

BaseMsgHdr

protected BaseMsgHdr(jnr.posix.NativePOSIX posix,
                     jnr.ffi.StructLayout layout)
Method Detail

setName

public void setName(String name)
Specified by:
setName in interface MsgHdr

getName

public String getName()
Specified by:
getName in interface MsgHdr

allocateControl

public CmsgHdr allocateControl(int dataLength)
Specified by:
allocateControl in interface MsgHdr

allocateControls

public CmsgHdr[] allocateControls(int[] dataLengths)
Specified by:
allocateControls in interface MsgHdr

getControls

public CmsgHdr[] getControls()
Specified by:
getControls in interface MsgHdr

setIov

public void setIov(ByteBuffer[] buffers)
Specified by:
setIov in interface MsgHdr

getIov

public ByteBuffer[] getIov()
Specified by:
getIov in interface MsgHdr


Copyright © 2014. All Rights Reserved.