From d801be71eaa3bcd65e7d2125a8a93951297ec7a0 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Mon, 12 Feb 2018 11:53:41 +0100 Subject: [PATCH] comments --- transport/internet/udp/hub.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/transport/internet/udp/hub.go b/transport/internet/udp/hub.go index ede84112..5651d1f5 100644 --- a/transport/internet/udp/hub.go +++ b/transport/internet/udp/hub.go @@ -112,6 +112,7 @@ func ListenUDP(address net.Address, port net.Port, option ListenOption) (*Hub, e return hub, nil } +// Close implements net.Listener. func (h *Hub) Close() error { h.conn.Close() return nil @@ -161,6 +162,7 @@ func (h *Hub) start() { h.queue.Close() } +// Addr implements net.Listener. func (h *Hub) Addr() net.Addr { return h.conn.LocalAddr() }