hdr_darwin.go 399 B

12345678910111213141516
  1. package msgx
  2. import "golang.org/x/sys/unix"
  3. // Hdr mirrors xnu's struct msghdr_x (bsd/sys/socket_private.h), which the SDK doesn't ship.
  4. // recvmsg_x reports each message's length in Datalen rather than in its return value.
  5. type Hdr struct {
  6. Name *byte
  7. Namelen uint32
  8. Iov *unix.Iovec
  9. Iovlen int32
  10. Control *byte
  11. Controllen uint32
  12. Flags int32
  13. Datalen uint64
  14. }