• Mikio Hara's avatar
    net: reduce unnecessary syscall.Sockaddr conversions · 8a7def2b
    Mikio Hara authored
    This CL makes IPAddr, UDPAddr and TCPAddr implement sockaddr
    interface, UnixAddr is already sockaddr interface compliant, and
    reduces unnecessary conversions between net.Addr, net.sockaddr and
    syscall.Sockaddr.
    
    This is in preparation for runtime-integrated network pollster for BSD
    variants.
    
    Update #5199
    
    R=golang-dev, dave, bradfitz
    CC=golang-dev
    https://golang.org/cl/12010043
    8a7def2b
udpsock_posix.go 7.53 KB