mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-12 20:31:17 +08:00
13 lines
327 B
Go
13 lines
327 B
Go
package constant
|
|
|
|
import "net"
|
|
|
|
type Tunnel interface {
|
|
// HandleTCPConn will handle a tcp connection blocking
|
|
HandleTCPConn(conn net.Conn, metadata *Metadata)
|
|
// HandleUDPPacket will handle a udp packet nonblocking
|
|
HandleUDPPacket(packet UDPPacket, metadata *Metadata)
|
|
// NatTable return nat table
|
|
NatTable() NatTable
|
|
}
|