Change Lookup method names

The Local was redundant (and inaccurate in the case of the mDNS client
implementation), and otherwise they are too nondescript.
This commit is contained in:
Michael Bridgen committed 2015-01-12 17:42:23 +00:00
1 parent 5f642d390c
commit ff45bcf945
7 files changed
+22 -22

No files matched your search

+2 -2
View File
@@ -23,7 +23,7 @@ func mdnsLookup(client *MDNSClient, name string, qtype uint16) (*Response, error
return nil, LookupError(name)
}
func (client *MDNSClient) LookupLocal(name string) (net.IP, error) {
func (client *MDNSClient) LookupName(name string) (net.IP, error) {
if r, e := mdnsLookup(client, name, dns.TypeA); r != nil {
return r.Addr, nil
} else {
@@ -31,7 +31,7 @@ func (client *MDNSClient) LookupLocal(name string) (net.IP, error) {
}
}
func (client *MDNSClient) ReverseLookupLocal(inaddr string) (string, error) {
func (client *MDNSClient) LookupInaddr(inaddr string) (string, error) {
if r, e := mdnsLookup(client, inaddr, dns.TypePTR); r != nil {
return r.Name, nil
} else {