struct cmsghdr {
socklen_t cmsg_len;
int cmsg_level;
int cmsg_type;
char cmsg_data[0];
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | CMsghdr.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | CMSG_DATA
The struct member offsets. |
| public static final int | CMSG_LEN
The struct member offsets. |
| public static final int | CMSG_LEVEL
The struct member offsets. |
| public static final int | CMSG_TYPE
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | CMsghdr(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static CMsghdr | |
| public static CMsghdr. | calloc(int
the buffer capacity capacity)Returns a new |
| public static CMsghdr | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static CMsghdr. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public ByteBuffer | |
| public byte | |
| public CMsghdr | |
| public CMsghdr | cmsg_data(int index, byte value)
Sets the specified value at the specified index of the |
| public int | |
| public CMsghdr | |
| public int | |
| public CMsghdr | |
| public int | |
| public CMsghdr | |
| protected CMsghdr | 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 CMsghdr | |
| public static CMsghdr | |
| public static CMsghdr. | create(int
the buffer capacity capacity)Returns a new |
| public static CMsghdr. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static CMsghdr | |
| public static CMsghdr. | |
| public static CMsghdr | |
| public static CMsghdr. | malloc(int
the buffer capacity capacity)Returns a new |
| public static CMsghdr | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static CMsghdr. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static ByteBuffer | |
| public static byte | |
| public static void | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public static int | |
| public static void | |
| public CMsghdr | set(int cmsg_len, int cmsg_level, int cmsg_type, ByteBuffer cmsg_data)
Initializes this struct with the specified values. |
| public CMsghdr | |
| public int |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| CMSG_DATA | back to summary |
|---|---|
| public static final int CMSG_DATA The struct member offsets. | |
| CMSG_LEN | back to summary |
|---|---|
| public static final int CMSG_LEN The struct member offsets. | |
| CMSG_LEVEL | back to summary |
|---|---|
| public static final int CMSG_LEVEL The struct member offsets. | |
| CMSG_TYPE | back to summary |
|---|---|
| public static final int CMSG_TYPE The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| CMsghdr | back to summary |
|---|---|
| protected CMsghdr(long address, ByteBuffer container) | |
| CMsghdr | back to summary |
|---|---|
| public CMsghdr(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static CMsghdr calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static CMsghdr. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static CMsghdr calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static CMsghdr. Returns a new
| |
| cmsg_data | back to summary |
|---|---|
public ByteBuffer cmsg_data()
| |
| cmsg_data | back to summary |
|---|---|
public byte cmsg_data(int index)
| |
| cmsg_data | back to summary |
|---|---|
| public CMsghdr cmsg_data(ByteBuffer value) Copies the specified | |
| cmsg_data | back to summary |
|---|---|
| public CMsghdr cmsg_data(int index, byte value) Sets the specified value at the specified index of the | |
| cmsg_len | back to summary |
|---|---|
| public int cmsg_len() data byte count, including header
| |
| cmsg_len | back to summary |
|---|---|
| public CMsghdr cmsg_len(int value) Sets the specified value to the | |
| cmsg_level | back to summary |
|---|---|
| public int cmsg_level() originating protocol | |
| cmsg_level | back to summary |
|---|---|
| public CMsghdr cmsg_level(int value) Sets the specified value to the | |
| cmsg_type | back to summary |
|---|---|
| public int cmsg_type() protocol-specific type | |
| cmsg_type | back to summary |
|---|---|
| public CMsghdr cmsg_type(int value) Sets the specified value to the | |
| create | back to summary |
|---|---|
| protected CMsghdr create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static CMsghdr create() Returns a new | |
| create | back to summary |
|---|---|
| public static CMsghdr create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static CMsghdr. Returns a new
| |
| create | back to summary |
|---|---|
| public static CMsghdr. Create a
| |
| createSafe | back to summary |
|---|---|
| public static CMsghdr createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static CMsghdr. Like
| |
| malloc | back to summary |
|---|---|
| public static CMsghdr malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static CMsghdr. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static CMsghdr malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static CMsghdr. Returns a new
| |
| ncmsg_data | back to summary |
|---|---|
| public static ByteBuffer ncmsg_data(long struct) Unsafe version of | |
| ncmsg_data | back to summary |
|---|---|
| public static byte ncmsg_data(long struct, int index) Unsafe version of | |
| ncmsg_data | back to summary |
|---|---|
| public static void ncmsg_data(long struct, ByteBuffer value) Unsafe version of | |
| ncmsg_data | back to summary |
|---|---|
| public static void ncmsg_data(long struct, int index, byte value) Unsafe version of | |
| ncmsg_len | back to summary |
|---|---|
| public static int ncmsg_len(long struct) Unsafe version of | |
| ncmsg_len | back to summary |
|---|---|
| public static void ncmsg_len(long struct, int value) Unsafe version of | |
| ncmsg_level | back to summary |
|---|---|
| public static int ncmsg_level(long struct) Unsafe version of | |
| ncmsg_level | back to summary |
|---|---|
| public static void ncmsg_level(long struct, int value) Unsafe version of | |
| ncmsg_type | back to summary |
|---|---|
| public static int ncmsg_type(long struct) Unsafe version of | |
| ncmsg_type | back to summary |
|---|---|
| public static void ncmsg_type(long struct, int value) Unsafe version of | |
| set | back to summary |
|---|---|
| public CMsghdr set(int cmsg_len, int cmsg_level, int cmsg_type, ByteBuffer cmsg_data) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public CMsghdr set(CMsghdr src) Copies the specified struct data to this struct. | |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
CMsghdr structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final CMsghdr |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ByteBuffer | |
| public byte | |
| public CMsghdr. | |
| public CMsghdr. | cmsg_data(int index, byte value)
Sets the specified value at the specified index of the |
| public int | |
| public CMsghdr. | |
| public int | |
| public CMsghdr. | |
| public int | |
| public CMsghdr. | |
| protected CMsghdr | |
| protected CMsghdr. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final CMsghdr 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) | |
| cmsg_data | back to summary |
|---|---|
public ByteBuffer cmsg_data()
| |
| cmsg_data | back to summary |
|---|---|
public byte cmsg_data(int index)
| |
| cmsg_data | back to summary |
|---|---|
| public CMsghdr. Copies the specified | |
| cmsg_data | back to summary |
|---|---|
| public CMsghdr. Sets the specified value at the specified index of the | |
| cmsg_len | back to summary |
|---|---|
public int cmsg_len()
| |
| cmsg_len | back to summary |
|---|---|
| public CMsghdr. Sets the specified value to the | |
| cmsg_level | back to summary |
|---|---|
public int cmsg_level()
| |
| cmsg_level | back to summary |
|---|---|
| public CMsghdr. Sets the specified value to the | |
| cmsg_type | back to summary |
|---|---|
public int cmsg_type()
| |
| cmsg_type | back to summary |
|---|---|
| public CMsghdr. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected CMsghdr getElementFactory() Implements abstract org.
| |
| self | back to summary |
|---|---|
| protected CMsghdr. Implements abstract org.
| |