2023-09-28 18:59:31 +08:00
|
|
|
package constant
|
|
|
|
|
2023-10-11 10:55:12 +08:00
|
|
|
import "net"
|
|
|
|
|
2023-09-28 18:59:31 +08:00
|
|
|
type Tunnel interface {
|
|
|
|
// HandleTCPConn will handle a tcp connection blocking
|
2023-10-11 10:55:12 +08:00
|
|
|
HandleTCPConn(conn net.Conn, metadata *Metadata)
|
2023-09-28 18:59:31 +08:00
|
|
|
// HandleUDPPacket will handle a udp packet nonblocking
|
2023-10-11 10:55:12 +08:00
|
|
|
HandleUDPPacket(packet UDPPacket, metadata *Metadata)
|
2023-09-28 18:59:31 +08:00
|
|
|
// NatTable return nat table
|
|
|
|
NatTable() NatTable
|
|
|
|
}
|