Versions in this module Expand all Collapse all v0 v0.28.1 Aug 29, 2024 Changes in this version + var NativeEndian binary.ByteOrder + func ControlMessageSpace(dataLen int) int + type Conn struct + func NewConn(c net.Conn) (*Conn, error) + func (c *Conn) RecvMsg(m *Message, flags int) error + func (c *Conn) RecvMsgs(ms []Message, flags int) (int, error) + func (c *Conn) SendMsg(m *Message, flags int) error + func (c *Conn) SendMsgs(ms []Message, flags int) (int, error) + type ControlMessage []byte + func NewControlMessage(dataLen []int) ControlMessage + func (m ControlMessage) Data(dataLen int) []byte + func (m ControlMessage) Marshal(lvl, typ int, data []byte) (ControlMessage, error) + func (m ControlMessage) MarshalHeader(lvl, typ, dataLen int) error + func (m ControlMessage) Next(dataLen int) ControlMessage + func (m ControlMessage) Parse() ([]ControlMessage, error) + func (m ControlMessage) ParseHeader() (lvl, typ, dataLen int, err error) + type Message struct + Addr net.Addr + Buffers [][]byte + Flags int + N int + NN int + OOB []byte + type Option struct + Len int + Level int + Name int + func (o *Option) Get(c *Conn, b []byte) (int, error) + func (o *Option) GetInt(c *Conn) (int, error) + func (o *Option) Set(c *Conn, b []byte) error + func (o *Option) SetInt(c *Conn, v int) error