-
-
Notifications
You must be signed in to change notification settings - Fork 119
/
net.go
73 lines (70 loc) · 3.03 KB
/
net.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// +build !appengine
package packages
import (
"net"
)
func init() {
Packages["net"] = map[string]interface{}{
"CIDRMask": net.CIDRMask,
"Dial": net.Dial,
"DialIP": net.DialIP,
"DialTCP": net.DialTCP,
"DialTimeout": net.DialTimeout,
"DialUDP": net.DialUDP,
"DialUnix": net.DialUnix,
"ErrWriteToConnected": net.ErrWriteToConnected,
"FileConn": net.FileConn,
"FileListener": net.FileListener,
"FilePacketConn": net.FilePacketConn,
"FlagBroadcast": net.FlagBroadcast,
"FlagLoopback": net.FlagLoopback,
"FlagMulticast": net.FlagMulticast,
"FlagPointToPoint": net.FlagPointToPoint,
"FlagUp": net.FlagUp,
"IPv4": net.IPv4,
"IPv4Mask": net.IPv4Mask,
"IPv4allrouter": net.IPv4allrouter,
"IPv4allsys": net.IPv4allsys,
"IPv4bcast": net.IPv4bcast,
"IPv4len": net.IPv4len,
"IPv4zero": net.IPv4zero,
"IPv6interfacelocalallnodes": net.IPv6interfacelocalallnodes,
"IPv6len": net.IPv6len,
"IPv6linklocalallnodes": net.IPv6linklocalallnodes,
"IPv6linklocalallrouters": net.IPv6linklocalallrouters,
"IPv6loopback": net.IPv6loopback,
"IPv6unspecified": net.IPv6unspecified,
"IPv6zero": net.IPv6zero,
"InterfaceAddrs": net.InterfaceAddrs,
"InterfaceByIndex": net.InterfaceByIndex,
"InterfaceByName": net.InterfaceByName,
"Interfaces": net.Interfaces,
"JoinHostPort": net.JoinHostPort,
"Listen": net.Listen,
"ListenIP": net.ListenIP,
"ListenMulticastUDP": net.ListenMulticastUDP,
"ListenPacket": net.ListenPacket,
"ListenTCP": net.ListenTCP,
"ListenUDP": net.ListenUDP,
"ListenUnix": net.ListenUnix,
"ListenUnixgram": net.ListenUnixgram,
"LookupAddr": net.LookupAddr,
"LookupCNAME": net.LookupCNAME,
"LookupHost": net.LookupHost,
"LookupIP": net.LookupIP,
"LookupMX": net.LookupMX,
"LookupNS": net.LookupNS,
"LookupPort": net.LookupPort,
"LookupSRV": net.LookupSRV,
"LookupTXT": net.LookupTXT,
"ParseCIDR": net.ParseCIDR,
"ParseIP": net.ParseIP,
"ParseMAC": net.ParseMAC,
"Pipe": net.Pipe,
"ResolveIPAddr": net.ResolveIPAddr,
"ResolveTCPAddr": net.ResolveTCPAddr,
"ResolveUDPAddr": net.ResolveUDPAddr,
"ResolveUnixAddr": net.ResolveUnixAddr,
"SplitHostPort": net.SplitHostPort,
}
}