close method for inbound connection handler

This commit is contained in:
v2ray
2016-01-03 23:30:37 +01:00
parent 8a132643ef
commit 201481a82c
7 changed files with 171 additions and 56 deletions
+1
View File
@@ -12,6 +12,7 @@ type InboundConnectionHandler interface {
// Listen starts a InboundConnectionHandler by listen on a specific port. This method is called
// exactly once during runtime.
Listen(port v2net.Port) error
Close()
}
// An OutboundConnectionHandler handles outbound network connection for V2Ray.