浏览代码

Handler state

v2ray 9 年之前
父节点
当前提交
3b35df1244
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      proxy/proxy.go

+ 7 - 0
proxy/proxy.go

@@ -6,6 +6,13 @@ import (
 	"github.com/v2ray/v2ray-core/transport/ray"
 )
 
+type HandlerState int
+
+const (
+	HandlerStateStopped = HandlerState(0)
+	HandlerStateRunning = HandlerState(1)
+)
+
 // An InboundHandler handles inbound network connections to V2Ray.
 type InboundHandler interface {
 	// Listen starts a InboundHandler by listen on a specific port.