• Mikio Hara's avatar
    net: support IPv6 scoped addressing zone · aa0dda76
    Mikio Hara authored
    This CL provides IPv6 scoped addressing zone support as defined
    in RFC 4007 for internet protocol family connection setups.
    
    Follwoing types and functions allow a literal IPv6 address with
    zone identifer as theirs parameter.
    
    pkg net, func Dial(string, string) (Conn, error)
    pkg net, func DialOpt(string, ...DialOption) (Conn, error)
    pkg net, func DialTimeout(string, string, time.Duration) (Conn, error)
    pkg net, func Listen(string, string) (Listener, error)
    pkg net, func ListenPacket(string, string) (PacketConn, error)
    pkg net, func ResolveIPAddr(string, string) (*IPAddr, error)
    pkg net, func ResolveTCPAddr(string, string) (*TCPAddr, error)
    pkg net, func ResolveUDPAddr(string, string) (*UDPAddr, error)
    pkg net, type IPAddr struct, Zone string
    pkg net, type TCPAddr struct, Zone string
    pkg net, type UDPAddr struct, Zone string
    
    Also follwoing methods return a literal IPv6 address with zone
    identifier string if possible.
    
    pkg net, method (*IPAddr) String() string
    pkg net, method (*TCPAddr) String() string
    pkg net, method (*UDPAddr) String() string
    
    Fixes #4234.
    Fixes #4501.
    Update #5081.
    
    R=rsc, iant
    CC=golang-dev
    https://golang.org/cl/6816116
    aa0dda76
Name
Last commit
Last update
..
archive Loading commit data...
bufio Loading commit data...
builtin Loading commit data...
bytes Loading commit data...
compress Loading commit data...
container Loading commit data...
crypto Loading commit data...
database/sql Loading commit data...
debug Loading commit data...
encoding Loading commit data...
errors Loading commit data...
expvar Loading commit data...
flag Loading commit data...
fmt Loading commit data...
go Loading commit data...
hash Loading commit data...
html Loading commit data...
image Loading commit data...
index/suffixarray Loading commit data...
io Loading commit data...
log Loading commit data...
math Loading commit data...
mime Loading commit data...
net Loading commit data...
os Loading commit data...
path Loading commit data...
reflect Loading commit data...
regexp Loading commit data...
runtime Loading commit data...
sort Loading commit data...
strconv Loading commit data...
strings Loading commit data...
sync Loading commit data...
syscall Loading commit data...
testing Loading commit data...
text Loading commit data...
time Loading commit data...
unicode Loading commit data...
unsafe Loading commit data...