gitee.com/ks-custle/core-gm@v0.0.0-20230922171213-b83bdd97b62c/net/internal/socket/mmsghdr_stub.go (about)

     1  // Copyright 2017 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  
     5  //go:build !aix && !linux && !netbsd
     6  // +build !aix,!linux,!netbsd
     7  
     8  package socket
     9  
    10  import "net"
    11  
    12  type mmsghdr struct{}
    13  
    14  type mmsghdrs []mmsghdr
    15  
    16  func (hs mmsghdrs) pack(ms []Message, parseFn func([]byte, string) (net.Addr, error), marshalFn func(net.Addr) []byte) error {
    17  	return nil
    18  }
    19  
    20  func (hs mmsghdrs) unpack(ms []Message, parseFn func([]byte, string) (net.Addr, error), hint string) error {
    21  	return nil
    22  }