mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-05 06:40:43 +00:00
18 lines
224 B
Go
18 lines
224 B
Go
package transport
|
|
|
|
import (
|
|
"net"
|
|
)
|
|
|
|
type TunnelType int
|
|
|
|
type Conn interface {
|
|
Server() error
|
|
Accept() (net.Conn, error)
|
|
Addr() net.Addr
|
|
RemoteAddr() net.Addr
|
|
Client() error
|
|
Open() (net.Conn, error)
|
|
Close() error
|
|
}
|