1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-04-16 18:49:16 -04:00

rename InboundConnectionHandler to InboundHandler

This commit is contained in:
v2ray
2016-01-25 17:18:24 +01:00
parent 4817f8ab1f
commit 9fe8178e4a
21 changed files with 37 additions and 37 deletions

View File

@@ -8,7 +8,7 @@ import (
)
// A InboundConnectionHandler handles inbound network connections to V2Ray.
type InboundConnectionHandler interface {
type InboundHandler interface {
// Listen starts a InboundConnectionHandler by listen on a specific port.
Listen(port v2net.Port) error
// Close stops the handler to accepting anymore inbound connections.
@@ -18,7 +18,7 @@ type InboundConnectionHandler interface {
}
// An OutboundConnectionHandler handles outbound network connection for V2Ray.
type OutboundConnectionHandler interface {
type OutboundHandler interface {
// Dispatch sends one or more Packets to its destination.
Dispatch(firstPacket v2net.Packet, ray ray.OutboundRay) error
}