github.com/goplus/igop@v0.25.0/pkg/net/go121_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.21
     4  // +build go1.21
     5  
     6  package net
     7  
     8  import (
     9  	q "net"
    10  
    11  	"go/constant"
    12  	"reflect"
    13  
    14  	"github.com/goplus/igop"
    15  )
    16  
    17  func init() {
    18  	igop.RegisterPackage(&igop.Package{
    19  		Name: "net",
    20  		Path: "net",
    21  		Deps: map[string]string{
    22  			"context":                                "context",
    23  			"errors":                                 "errors",
    24  			"internal/bytealg":                       "bytealg",
    25  			"internal/godebug":                       "godebug",
    26  			"internal/itoa":                          "itoa",
    27  			"internal/nettrace":                      "nettrace",
    28  			"internal/poll":                          "poll",
    29  			"internal/singleflight":                  "singleflight",
    30  			"internal/syscall/unix":                  "unix",
    31  			"io":                                     "io",
    32  			"io/fs":                                  "fs",
    33  			"net/netip":                              "netip",
    34  			"os":                                     "os",
    35  			"runtime":                                "runtime",
    36  			"runtime/cgo":                            "cgo",
    37  			"sort":                                   "sort",
    38  			"sync":                                   "sync",
    39  			"sync/atomic":                            "atomic",
    40  			"syscall":                                "syscall",
    41  			"time":                                   "time",
    42  			"unsafe":                                 "unsafe",
    43  			"vendor/golang.org/x/net/dns/dnsmessage": "dnsmessage",
    44  			"vendor/golang.org/x/net/route":          "route",
    45  		},
    46  		Interfaces: map[string]reflect.Type{
    47  			"Addr":       reflect.TypeOf((*q.Addr)(nil)).Elem(),
    48  			"Conn":       reflect.TypeOf((*q.Conn)(nil)).Elem(),
    49  			"Error":      reflect.TypeOf((*q.Error)(nil)).Elem(),
    50  			"Listener":   reflect.TypeOf((*q.Listener)(nil)).Elem(),
    51  			"PacketConn": reflect.TypeOf((*q.PacketConn)(nil)).Elem(),
    52  		},
    53  		NamedTypes: map[string]reflect.Type{
    54  			"AddrError":           reflect.TypeOf((*q.AddrError)(nil)).Elem(),
    55  			"Buffers":             reflect.TypeOf((*q.Buffers)(nil)).Elem(),
    56  			"DNSConfigError":      reflect.TypeOf((*q.DNSConfigError)(nil)).Elem(),
    57  			"DNSError":            reflect.TypeOf((*q.DNSError)(nil)).Elem(),
    58  			"Dialer":              reflect.TypeOf((*q.Dialer)(nil)).Elem(),
    59  			"Flags":               reflect.TypeOf((*q.Flags)(nil)).Elem(),
    60  			"HardwareAddr":        reflect.TypeOf((*q.HardwareAddr)(nil)).Elem(),
    61  			"IP":                  reflect.TypeOf((*q.IP)(nil)).Elem(),
    62  			"IPAddr":              reflect.TypeOf((*q.IPAddr)(nil)).Elem(),
    63  			"IPConn":              reflect.TypeOf((*q.IPConn)(nil)).Elem(),
    64  			"IPMask":              reflect.TypeOf((*q.IPMask)(nil)).Elem(),
    65  			"IPNet":               reflect.TypeOf((*q.IPNet)(nil)).Elem(),
    66  			"Interface":           reflect.TypeOf((*q.Interface)(nil)).Elem(),
    67  			"InvalidAddrError":    reflect.TypeOf((*q.InvalidAddrError)(nil)).Elem(),
    68  			"ListenConfig":        reflect.TypeOf((*q.ListenConfig)(nil)).Elem(),
    69  			"MX":                  reflect.TypeOf((*q.MX)(nil)).Elem(),
    70  			"NS":                  reflect.TypeOf((*q.NS)(nil)).Elem(),
    71  			"OpError":             reflect.TypeOf((*q.OpError)(nil)).Elem(),
    72  			"ParseError":          reflect.TypeOf((*q.ParseError)(nil)).Elem(),
    73  			"Resolver":            reflect.TypeOf((*q.Resolver)(nil)).Elem(),
    74  			"SRV":                 reflect.TypeOf((*q.SRV)(nil)).Elem(),
    75  			"TCPAddr":             reflect.TypeOf((*q.TCPAddr)(nil)).Elem(),
    76  			"TCPConn":             reflect.TypeOf((*q.TCPConn)(nil)).Elem(),
    77  			"TCPListener":         reflect.TypeOf((*q.TCPListener)(nil)).Elem(),
    78  			"UDPAddr":             reflect.TypeOf((*q.UDPAddr)(nil)).Elem(),
    79  			"UDPConn":             reflect.TypeOf((*q.UDPConn)(nil)).Elem(),
    80  			"UnixAddr":            reflect.TypeOf((*q.UnixAddr)(nil)).Elem(),
    81  			"UnixConn":            reflect.TypeOf((*q.UnixConn)(nil)).Elem(),
    82  			"UnixListener":        reflect.TypeOf((*q.UnixListener)(nil)).Elem(),
    83  			"UnknownNetworkError": reflect.TypeOf((*q.UnknownNetworkError)(nil)).Elem(),
    84  		},
    85  		AliasTypes: map[string]reflect.Type{},
    86  		Vars: map[string]reflect.Value{
    87  			"DefaultResolver":            reflect.ValueOf(&q.DefaultResolver),
    88  			"ErrClosed":                  reflect.ValueOf(&q.ErrClosed),
    89  			"ErrWriteToConnected":        reflect.ValueOf(&q.ErrWriteToConnected),
    90  			"IPv4allrouter":              reflect.ValueOf(&q.IPv4allrouter),
    91  			"IPv4allsys":                 reflect.ValueOf(&q.IPv4allsys),
    92  			"IPv4bcast":                  reflect.ValueOf(&q.IPv4bcast),
    93  			"IPv4zero":                   reflect.ValueOf(&q.IPv4zero),
    94  			"IPv6interfacelocalallnodes": reflect.ValueOf(&q.IPv6interfacelocalallnodes),
    95  			"IPv6linklocalallnodes":      reflect.ValueOf(&q.IPv6linklocalallnodes),
    96  			"IPv6linklocalallrouters":    reflect.ValueOf(&q.IPv6linklocalallrouters),
    97  			"IPv6loopback":               reflect.ValueOf(&q.IPv6loopback),
    98  			"IPv6unspecified":            reflect.ValueOf(&q.IPv6unspecified),
    99  			"IPv6zero":                   reflect.ValueOf(&q.IPv6zero),
   100  		},
   101  		Funcs: map[string]reflect.Value{
   102  			"CIDRMask":            reflect.ValueOf(q.CIDRMask),
   103  			"Dial":                reflect.ValueOf(q.Dial),
   104  			"DialIP":              reflect.ValueOf(q.DialIP),
   105  			"DialTCP":             reflect.ValueOf(q.DialTCP),
   106  			"DialTimeout":         reflect.ValueOf(q.DialTimeout),
   107  			"DialUDP":             reflect.ValueOf(q.DialUDP),
   108  			"DialUnix":            reflect.ValueOf(q.DialUnix),
   109  			"FileConn":            reflect.ValueOf(q.FileConn),
   110  			"FileListener":        reflect.ValueOf(q.FileListener),
   111  			"FilePacketConn":      reflect.ValueOf(q.FilePacketConn),
   112  			"IPv4":                reflect.ValueOf(q.IPv4),
   113  			"IPv4Mask":            reflect.ValueOf(q.IPv4Mask),
   114  			"InterfaceAddrs":      reflect.ValueOf(q.InterfaceAddrs),
   115  			"InterfaceByIndex":    reflect.ValueOf(q.InterfaceByIndex),
   116  			"InterfaceByName":     reflect.ValueOf(q.InterfaceByName),
   117  			"Interfaces":          reflect.ValueOf(q.Interfaces),
   118  			"JoinHostPort":        reflect.ValueOf(q.JoinHostPort),
   119  			"Listen":              reflect.ValueOf(q.Listen),
   120  			"ListenIP":            reflect.ValueOf(q.ListenIP),
   121  			"ListenMulticastUDP":  reflect.ValueOf(q.ListenMulticastUDP),
   122  			"ListenPacket":        reflect.ValueOf(q.ListenPacket),
   123  			"ListenTCP":           reflect.ValueOf(q.ListenTCP),
   124  			"ListenUDP":           reflect.ValueOf(q.ListenUDP),
   125  			"ListenUnix":          reflect.ValueOf(q.ListenUnix),
   126  			"ListenUnixgram":      reflect.ValueOf(q.ListenUnixgram),
   127  			"LookupAddr":          reflect.ValueOf(q.LookupAddr),
   128  			"LookupCNAME":         reflect.ValueOf(q.LookupCNAME),
   129  			"LookupHost":          reflect.ValueOf(q.LookupHost),
   130  			"LookupIP":            reflect.ValueOf(q.LookupIP),
   131  			"LookupMX":            reflect.ValueOf(q.LookupMX),
   132  			"LookupNS":            reflect.ValueOf(q.LookupNS),
   133  			"LookupPort":          reflect.ValueOf(q.LookupPort),
   134  			"LookupSRV":           reflect.ValueOf(q.LookupSRV),
   135  			"LookupTXT":           reflect.ValueOf(q.LookupTXT),
   136  			"ParseCIDR":           reflect.ValueOf(q.ParseCIDR),
   137  			"ParseIP":             reflect.ValueOf(q.ParseIP),
   138  			"ParseMAC":            reflect.ValueOf(q.ParseMAC),
   139  			"Pipe":                reflect.ValueOf(q.Pipe),
   140  			"ResolveIPAddr":       reflect.ValueOf(q.ResolveIPAddr),
   141  			"ResolveTCPAddr":      reflect.ValueOf(q.ResolveTCPAddr),
   142  			"ResolveUDPAddr":      reflect.ValueOf(q.ResolveUDPAddr),
   143  			"ResolveUnixAddr":     reflect.ValueOf(q.ResolveUnixAddr),
   144  			"SplitHostPort":       reflect.ValueOf(q.SplitHostPort),
   145  			"TCPAddrFromAddrPort": reflect.ValueOf(q.TCPAddrFromAddrPort),
   146  			"UDPAddrFromAddrPort": reflect.ValueOf(q.UDPAddrFromAddrPort),
   147  		},
   148  		TypedConsts: map[string]igop.TypedConst{
   149  			"FlagBroadcast":    {reflect.TypeOf(q.FlagBroadcast), constant.MakeInt64(int64(q.FlagBroadcast))},
   150  			"FlagLoopback":     {reflect.TypeOf(q.FlagLoopback), constant.MakeInt64(int64(q.FlagLoopback))},
   151  			"FlagMulticast":    {reflect.TypeOf(q.FlagMulticast), constant.MakeInt64(int64(q.FlagMulticast))},
   152  			"FlagPointToPoint": {reflect.TypeOf(q.FlagPointToPoint), constant.MakeInt64(int64(q.FlagPointToPoint))},
   153  			"FlagRunning":      {reflect.TypeOf(q.FlagRunning), constant.MakeInt64(int64(q.FlagRunning))},
   154  			"FlagUp":           {reflect.TypeOf(q.FlagUp), constant.MakeInt64(int64(q.FlagUp))},
   155  		},
   156  		UntypedConsts: map[string]igop.UntypedConst{
   157  			"IPv4len": {"untyped int", constant.MakeInt64(int64(q.IPv4len))},
   158  			"IPv6len": {"untyped int", constant.MakeInt64(int64(q.IPv6len))},
   159  		},
   160  	})
   161  }