1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-01 23:16:23 -05:00

Handler state

This commit is contained in:
v2ray 2016-03-06 16:36:08 +01:00
parent 83e0482d2b
commit 3b35df1244

View File

@ -6,6 +6,13 @@ import (
"github.com/v2ray/v2ray-core/transport/ray" "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. // An InboundHandler handles inbound network connections to V2Ray.
type InboundHandler interface { type InboundHandler interface {
// Listen starts a InboundHandler by listen on a specific port. // Listen starts a InboundHandler by listen on a specific port.