github.com/kelleygo/clashcore@v1.0.2/constant/tunnel.go (about) 1 package constant 2 3 import "net" 4 5 type Tunnel interface { 6 // HandleTCPConn will handle a tcp connection blocking 7 HandleTCPConn(conn net.Conn, metadata *Metadata) 8 // HandleUDPPacket will handle a udp packet nonblocking 9 HandleUDPPacket(packet UDPPacket, metadata *Metadata) 10 // NatTable return nat table 11 NatTable() NatTable 12 }