Class MsgHdr

java.lang.Object
io.netty.channel.uring.MsgHdr

final class MsgHdr extends Object
struct msghdr {
    void         *msg_name;       // optional address
    socklen_t    msg_namelen;     // size of address
    struct       iovec*msg_iov;   // scatter/gather array
    size_t       msg_iovlen;      // # elements in msg_iov
    void*        msg_control;     // ancillary data, see below
    size_t       msg_controllen;  // ancillary data buffer len
    int          msg_flags;       // flags on received message
};
  • Constructor Details

    • MsgHdr

      private MsgHdr()
  • Method Details

    • set

      static void set(ByteBuffer memory, long iovMemory, int iovLength)
    • set

      static void set(ByteBuffer memory, ByteBuffer sockAddrMemory, int addressSize, long iovMemory, int iovLength, ByteBuffer msgControl, int cmsgHdrDataOffset, short segmentSize)
    • set

      static void set(ByteBuffer memory, ByteBuffer sockAddrMemory, int addressSize, ByteBuffer iovMemory, int iovLength, ByteBuffer msgControl, int cmsgHdrDataOffset, short segmentSize)
    • prepSendFd

      static void prepSendFd(ByteBuffer memory, int fd, ByteBuffer msgControl, int cmsgHdrDataOffset, ByteBuffer iovMemory, int iovLength)
    • prepReadFd

      static void prepReadFd(ByteBuffer memory, ByteBuffer msgControl, int cmsgHdrDataOffset, ByteBuffer iovMemory, int iovLength)
    • getCmsgData

      static int getCmsgData(ByteBuffer memory, ByteBuffer msgControl, int cmsgHdrDataOffset)