OSDN Git Service

Hulk did something
[bytom/vapor.git] / vendor / github.com / btcsuite / go-socks / socks / addr.go
1 // Copyright 2012 Samuel Stauffer. All rights reserved.
2 // Use of this source code is governed by a 3-clause BSD
3 // license that can be found in the LICENSE file.
4
5 package socks
6
7 import "fmt"
8
9 type ProxiedAddr struct {
10         Net  string
11         Host string
12         Port int
13 }
14
15 func (a *ProxiedAddr) Network() string {
16         return a.Net
17 }
18
19 func (a *ProxiedAddr) String() string {
20         return fmt.Sprintf("%s:%d", a.Host, a.Port)
21 }