Documentation ¶
Index ¶
- Variables
- func DecodePacket(r []byte, auth Auth, prefix bool) ([]byte, netapi.Address, error)
- func EncodePacket(w *bytes.Buffer, addr net.Addr, buf []byte, auth Auth, prefix bool) error
- func NewAuthPacketConn(local net.PacketConn, tcp net.Conn, target net.Addr, auth Auth, prefix bool) *authPacketConn
- func NewClient(config *protocol.Protocol_Yuubinsya) point.WrapProxy
- func NewHandshaker(server bool, encrypted bool, password []byte) crypto.Handshaker
- func NewServer(config *pl.Inbound_Yuubinsya) func(netapi.Listener) (netapi.ProtocolServer, error)
- func StartUDPServer(packet net.PacketConn, sendPacket func(*netapi.Packet) bool, auth Auth, ...)
- type Auth
- type Conn
- type PacketConn
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNet = errors.New("network error")
Functions ¶
func DecodePacket ¶ added in v0.3.3
func EncodePacket ¶ added in v0.3.3
func NewAuthPacketConn ¶ added in v0.3.3
func NewClient ¶ added in v0.3.3
func NewClient(config *protocol.Protocol_Yuubinsya) point.WrapProxy
func NewHandshaker ¶
func NewHandshaker(server bool, encrypted bool, password []byte) crypto.Handshaker
func NewServer ¶
func NewServer(config *pl.Inbound_Yuubinsya) func(netapi.Listener) (netapi.ProtocolServer, error)
func StartUDPServer ¶ added in v0.3.3
Types ¶
type Auth ¶ added in v0.3.3
func NewPlainAuth ¶ added in v0.3.3
type PacketConn ¶
Click to show internal directories.
Click to hide internal directories.