struct msghdr {
void * msg_name;
socklen_t msg_namelen;
struct iovec * msg_iov;
size_t msg_iovlen;
void * msg_control;
size_t msg_controllen;
int msg_flags;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | Msghdr.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | MSG_CONTROL
The struct member offsets. |
| public static final int | MSG_CONTROLLEN
The struct member offsets. |
| public static final int | MSG_FLAGS
The struct member offsets. |
| public static final int | MSG_IOV
The struct member offsets. |
| public static final int | MSG_IOVLEN
The struct member offsets. |
| public static final int | MSG_NAME
The struct member offsets. |
| public static final int | MSG_NAMELEN
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | Msghdr(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static Msghdr | |
| public static Msghdr. | calloc(int
the buffer capacity capacity)Returns a new |
| public static Msghdr | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static Msghdr. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected Msghdr | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static Msghdr | |
| public static Msghdr | |
| public static Msghdr. | create(int
the buffer capacity capacity)Returns a new |
| public static Msghdr. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static Msghdr | |
| public static Msghdr. | |
| public static Msghdr | |
| public static Msghdr. | malloc(int
the buffer capacity capacity)Returns a new |
| public static Msghdr | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static Msghdr. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public ByteBuffer | |
| public Msghdr | |
| public long | |
| public int | |
| public Msghdr | |
| public IOVec. | |
| public Msghdr | |
| public long | |
| public ByteBuffer | |
| public Msghdr | |
| public int | |
| public static ByteBuffer | |
| public static void | |
| public static long | |
| public static void | nmsg_controllen(long struct, long value)
Sets the specified value to the |
| public static int | |
| public static void | |
| public static IOVec. | |
| public static void | |
| public static long | |
| public static void | nmsg_iovlen(long struct, long value)
Sets the specified value to the |
| public static ByteBuffer | |
| public static void | |
| public static int | |
| public static void | nmsg_namelen(long struct, int value)
Sets the specified value to the |
| public Msghdr | set(ByteBuffer msg_name, IOVec.
Initializes this struct with the specified values. |
| public Msghdr | |
| public int | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| MSG_CONTROL | back to summary |
|---|---|
| public static final int MSG_CONTROL The struct member offsets. | |
| MSG_CONTROLLEN | back to summary |
|---|---|
| public static final int MSG_CONTROLLEN The struct member offsets. | |
| MSG_FLAGS | back to summary |
|---|---|
| public static final int MSG_FLAGS The struct member offsets. | |
| MSG_IOV | back to summary |
|---|---|
| public static final int MSG_IOV The struct member offsets. | |
| MSG_IOVLEN | back to summary |
|---|---|
| public static final int MSG_IOVLEN The struct member offsets. | |
| MSG_NAME | back to summary |
|---|---|
| public static final int MSG_NAME The struct member offsets. | |
| MSG_NAMELEN | back to summary |
|---|---|
| public static final int MSG_NAMELEN The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| Msghdr | back to summary |
|---|---|
| protected Msghdr(long address, ByteBuffer container) | |
| Msghdr | back to summary |
|---|---|
| public Msghdr(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static Msghdr calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static Msghdr. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static Msghdr calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static Msghdr. Returns a new
| |
| create | back to summary |
|---|---|
| protected Msghdr create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static Msghdr create() Returns a new | |
| create | back to summary |
|---|---|
| public static Msghdr create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static Msghdr. Returns a new
| |
| create | back to summary |
|---|---|
| public static Msghdr. Create a
| |
| createSafe | back to summary |
|---|---|
| public static Msghdr createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static Msghdr. Like
| |
| malloc | back to summary |
|---|---|
| public static Msghdr malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static Msghdr. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static Msghdr malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static Msghdr. Returns a new
| |
| msg_control | back to summary |
|---|---|
| public ByteBuffer msg_control() ancillary data (eg BSD filedesc passing)
| |
| msg_control | back to summary |
|---|---|
| public Msghdr msg_control(ByteBuffer value) Sets the address of the specified | |
| msg_controllen | back to summary |
|---|---|
| public long msg_controllen() ancillary data buffer length
| |
| msg_flags | back to summary |
|---|---|
| public int msg_flags() flags on received message | |
| msg_flags | back to summary |
|---|---|
| public Msghdr msg_flags(int value) Sets the specified value to the | |
| msg_iov | back to summary |
|---|---|
| public IOVec. vector of data to send/receive into
| |
| msg_iov | back to summary |
|---|---|
| public Msghdr msg_iov(IOVec. Sets the address of the specified | |
| msg_iovlen | back to summary |
|---|---|
| public long msg_iovlen() number of elements in the vector
| |
| msg_name | back to summary |
|---|---|
| public ByteBuffer msg_name() address to send to/receive from
| |
| msg_name | back to summary |
|---|---|
| public Msghdr msg_name(ByteBuffer value) Sets the address of the specified | |
| msg_namelen | back to summary |
|---|---|
| public int msg_namelen() length of
| |
| nmsg_control | back to summary |
|---|---|
| public static ByteBuffer nmsg_control(long struct) Unsafe version of | |
| nmsg_control | back to summary |
|---|---|
| public static void nmsg_control(long struct, ByteBuffer value) Unsafe version of | |
| nmsg_controllen | back to summary |
|---|---|
| public static long nmsg_controllen(long struct) Unsafe version of | |
| nmsg_controllen | back to summary |
|---|---|
| public static void nmsg_controllen(long struct, long value) Sets the specified value to the | |
| nmsg_flags | back to summary |
|---|---|
| public static int nmsg_flags(long struct) Unsafe version of | |
| nmsg_flags | back to summary |
|---|---|
| public static void nmsg_flags(long struct, int value) Unsafe version of | |
| nmsg_iov | back to summary |
|---|---|
| public static IOVec. Unsafe version of | |
| nmsg_iov | back to summary |
|---|---|
| public static void nmsg_iov(long struct, IOVec. Unsafe version of | |
| nmsg_iovlen | back to summary |
|---|---|
| public static long nmsg_iovlen(long struct) Unsafe version of | |
| nmsg_iovlen | back to summary |
|---|---|
| public static void nmsg_iovlen(long struct, long value) Sets the specified value to the | |
| nmsg_name | back to summary |
|---|---|
| public static ByteBuffer nmsg_name(long struct) Unsafe version of | |
| nmsg_name | back to summary |
|---|---|
| public static void nmsg_name(long struct, ByteBuffer value) Unsafe version of | |
| nmsg_namelen | back to summary |
|---|---|
| public static int nmsg_namelen(long struct) Unsafe version of | |
| nmsg_namelen | back to summary |
|---|---|
| public static void nmsg_namelen(long struct, int value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public Msghdr set(ByteBuffer msg_name, IOVec. Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public Msghdr set(Msghdr src) Copies the specified struct data to this struct. | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
Msghdr structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final Msghdr |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected Msghdr | |
| public ByteBuffer | |
| public Msghdr. | msg_control(ByteBuffer value)
Sets the address of the specified |
| public long | |
| public int | |
| public Msghdr. | |
| public IOVec. | |
| public Msghdr. | msg_iov(IOVec.
Sets the address of the specified |
| public long | |
| public ByteBuffer | |
| public Msghdr. | msg_name(ByteBuffer value)
Sets the address of the specified |
| public int | |
| protected Msghdr. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final Msghdr ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| getElementFactory | back to summary |
|---|---|
| protected Msghdr getElementFactory() Implements abstract org.
| |
| msg_control | back to summary |
|---|---|
public ByteBuffer msg_control()
| |
| msg_control | back to summary |
|---|---|
| public Msghdr. Sets the address of the specified | |
| msg_controllen | back to summary |
|---|---|
public long msg_controllen()
| |
| msg_flags | back to summary |
|---|---|
public int msg_flags()
| |
| msg_flags | back to summary |
|---|---|
| public Msghdr. Sets the specified value to the | |
| msg_iov | back to summary |
|---|---|
public IOVec.
| |
| msg_iov | back to summary |
|---|---|
| public Msghdr. Sets the address of the specified | |
| msg_iovlen | back to summary |
|---|---|
public long msg_iovlen()
| |
| msg_name | back to summary |
|---|---|
public ByteBuffer msg_name()
| |
| msg_name | back to summary |
|---|---|
| public Msghdr. Sets the address of the specified | |
| msg_namelen | back to summary |
|---|---|
public int msg_namelen()
| |
| self | back to summary |
|---|---|
| protected Msghdr. Implements abstract org.
| |