1// Copyright 2020 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package socket
6
7type iovec struct {
8	Base *byte
9	Len  uint64
10}
11
12type msghdr struct {
13	Name       *byte
14	Iov        *iovec
15	Control    *byte
16	Flags      int32
17	Namelen    uint32
18	Iovlen     int32
19	Controllen uint32
20}
21
22type cmsghdr struct {
23	Len   int32
24	Level int32
25	Type  int32
26}
27
28const (
29	sizeofCmsghdr       = 12
30	sizeofSockaddrInet  = 16
31	sizeofSockaddrInet6 = 28
32)
33