aboutsummaryrefslogtreecommitdiff
path: root/dht/remote_node.go
diff options
context:
space:
mode:
Diffstat (limited to 'dht/remote_node.go')
-rw-r--r--dht/remote_node.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/dht/remote_node.go b/dht/remote_node.go
new file mode 100644
index 0000000..8a8d4a2
--- /dev/null
+++ b/dht/remote_node.go
@@ -0,0 +1,18 @@
+package dht
+
+import (
+ "fmt"
+ "net"
+ //"time"
+)
+
+type remoteNode struct {
+ address net.UDPAddr
+ id Infohash
+ //lastSeen time.Time
+}
+
+// String implements fmt.Stringer
+func (r *remoteNode) String() string {
+ return fmt.Sprintf("%s:%d", r.address.IP.String(), r.address.Port)
+}