net: make UnixAddr implement sockaddr interface

This is in preparation for runtime-integrated network pollster for BSD
variants.

Update #5199

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/11932044
This commit is contained in:
Mikio Hara 2013-07-28 16:15:07 +09:00
parent e257cd8aae
commit a64bea5c99
3 changed files with 27 additions and 18 deletions

View file

@ -23,13 +23,6 @@ func (a *UnixAddr) String() string {
return a.Name
}
func (a *UnixAddr) toAddr() Addr {
if a == nil { // nil *UnixAddr
return nil // nil interface
}
return a
}
// ResolveUnixAddr parses addr as a Unix domain socket address.
// The string net gives the network name, "unix", "unixgram" or
// "unixpacket".