Documentation ¶
Index ¶
- Constants
- type VMessInboundHandler
- func (handler *VMessInboundHandler) AcceptConnections(listener *net.TCPListener) error
- func (handler *VMessInboundHandler) AcceptPackets(conn *net.UDPConn)
- func (handler *VMessInboundHandler) HandleConnection(connection *net.TCPConn) error
- func (handler *VMessInboundHandler) Listen(port uint16) error
- func (handler *VMessInboundHandler) ListenUDP(port uint16) error
- type VMessInboundHandlerFactory
- type VMessOutboundHandler
- type VMessOutboundHandlerFactory
Constants ¶
View Source
const (
InfoTimeNotSync = "Please check the User ID in your vmess configuration, and make sure the time on your local and remote server are in sync."
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VMessInboundHandler ¶
type VMessInboundHandler struct {
// contains filtered or unexported fields
}
func NewVMessInboundHandler ¶
func NewVMessInboundHandler(dispatcher app.PacketDispatcher, clients user.UserSet, udpEnabled bool) *VMessInboundHandler
func (*VMessInboundHandler) AcceptConnections ¶
func (handler *VMessInboundHandler) AcceptConnections(listener *net.TCPListener) error
func (*VMessInboundHandler) AcceptPackets ¶ added in v0.9.1
func (handler *VMessInboundHandler) AcceptPackets(conn *net.UDPConn)
func (*VMessInboundHandler) HandleConnection ¶
func (handler *VMessInboundHandler) HandleConnection(connection *net.TCPConn) error
func (*VMessInboundHandler) Listen ¶
func (handler *VMessInboundHandler) Listen(port uint16) error
func (*VMessInboundHandler) ListenUDP ¶ added in v0.9.1
func (handler *VMessInboundHandler) ListenUDP(port uint16) error
type VMessInboundHandlerFactory ¶
type VMessInboundHandlerFactory struct { }
func (*VMessInboundHandlerFactory) Create ¶
func (factory *VMessInboundHandlerFactory) Create(dispatcher app.PacketDispatcher, rawConfig interface{}) (proxy.InboundConnectionHandler, error)
type VMessOutboundHandler ¶
type VMessOutboundHandler struct {
// contains filtered or unexported fields
}
func NewVMessOutboundHandler ¶
func NewVMessOutboundHandler(vNextList, vNextListUDP []*config.OutboundTarget) *VMessOutboundHandler
func (*VMessOutboundHandler) Dispatch ¶ added in v0.9.1
func (handler *VMessOutboundHandler) Dispatch(firstPacket v2net.Packet, ray ray.OutboundRay) error
type VMessOutboundHandlerFactory ¶
type VMessOutboundHandlerFactory struct { }
func (*VMessOutboundHandlerFactory) Create ¶
func (factory *VMessOutboundHandlerFactory) Create(rawConfig interface{}) (proxy.OutboundConnectionHandler, error)
Click to show internal directories.
Click to hide internal directories.