mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-13 20:33:16 +00:00
18 lines
295 B
Go
18 lines
295 B
Go
package adapter
|
|
|
|
import (
|
|
"context"
|
|
"net"
|
|
)
|
|
|
|
type V2RayServerTransport interface {
|
|
Network() []string
|
|
Serve(listener net.Listener) error
|
|
ServePacket(listener net.PacketConn) error
|
|
Close() error
|
|
}
|
|
|
|
type V2RayClientTransport interface {
|
|
DialContext(ctx context.Context) (net.Conn, error)
|
|
}
|