mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-07-05 16:38:17 -04:00
doc for InboundConnectionHandler
This commit is contained in:
parent
5b1854f842
commit
43f76d4704
@ -9,9 +9,9 @@ import (
|
|||||||
|
|
||||||
// A InboundConnectionHandler handles inbound network connections to V2Ray.
|
// A InboundConnectionHandler handles inbound network connections to V2Ray.
|
||||||
type InboundConnectionHandler interface {
|
type InboundConnectionHandler interface {
|
||||||
// Listen starts a InboundConnectionHandler by listen on a specific port. This method is called
|
// Listen starts a InboundConnectionHandler by listen on a specific port.
|
||||||
// exactly once during runtime.
|
|
||||||
Listen(port v2net.Port) error
|
Listen(port v2net.Port) error
|
||||||
|
// Close stops the handler to accepting anymore inbound connections.
|
||||||
Close()
|
Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user