sing-box/adapter/outbound.go

18 lines
380 B
Go
Raw Normal View History

2022-06-30 13:27:56 +00:00
package adapter
import (
"context"
"net"
M "github.com/sagernet/sing/common/metadata"
N "github.com/sagernet/sing/common/network"
)
type Outbound interface {
Type() string
Tag() string
2022-07-03 05:14:49 +00:00
N.Dialer
2022-06-30 13:27:56 +00:00
NewConnection(ctx context.Context, conn net.Conn, destination M.Socksaddr) error
NewPacketConnection(ctx context.Context, conn N.PacketConn, destination M.Socksaddr) error
}