inbound_connection.go 362 B

123456789101112
  1. package connhandler
  2. import (
  3. v2net "github.com/v2ray/v2ray-core/common/net"
  4. )
  5. // A InboundConnectionHandler handles inbound network connections to V2Ray.
  6. type InboundConnectionHandler interface {
  7. // Listen starts a InboundConnectionHandler by listen on a specific port. This method is called
  8. // exactly once during runtime.
  9. Listen(port v2net.Port) error
  10. }