MCPcopy
hub / github.com/v2ray/v2ray-core / Inbound

Interface Inbound

proxy/proxy.go:19–25  ·  view source on GitHub ↗

An Inbound processes inbound connections.

Source from the content-addressed store, hash-verified

17
18// An Inbound processes inbound connections.
19type Inbound interface {
20 // Network returns a list of networks that this inbound supports. Connections with not-supported networks will not be passed into Process().
21 Network() []net.Network
22
23 // Process processes a connection of given network. If necessary, the Inbound can dispatch the connection to an Outbound.
24 Process(context.Context, net.Network, internet.Connection, routing.Dispatcher) error
25}
26
27// An Outbound process outbound connections.
28type Outbound interface {

Callers 9

ListenMethod · 0.65
ListenPacketMethod · 0.65
refreshMethod · 0.65
callbackMethod · 0.65
callbackMethod · 0.65
DispatchMethod · 0.65
CreateMethod · 0.65

Implementers 10

Serverproxy/shadowsocks/server.go
DokodemoDoorproxy/dokodemo/dokodemo.go
Serverproxy/http/server.go
Serverproxy/socks/server.go
Serverproxy/trojan/server.go
Serverproxy/mtproto/server.go
Handlerproxy/vless/inbound/inbound.go
Handlerproxy/vmess/inbound/inbound.go
ProxyInboundtesting/mocks/proxy.go
ProxyInboundMockRecordertesting/mocks/proxy.go

Calls

no outgoing calls

Tested by

no test coverage detected