implement a Serve method for the Listener

This commit is contained in:
Marten Seemann
2017-02-21 08:38:41 +07:00
parent cd465ae0b5
commit 48dee2708e
4 changed files with 70 additions and 68 deletions

View File

@@ -59,6 +59,5 @@ type Config struct {
type Listener interface {
Close() error
Addr() net.Addr
ListenAddr(addr string) error
Listen(conn net.PacketConn) error
Serve() error
}