direct

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOutboundConnSession

func NewOutboundConnSession(conn io.ReadWriteCloser, req *protocol.Request) (protocol.ConnSession, error)

func NewOutboundPacketSession

func NewOutboundPacketSession() (protocol.PacketSession, error)

Types

type DirectOutboundConnSession

type DirectOutboundConnSession struct {
	protocol.ConnSession
	// contains filtered or unexported fields
}

func (*DirectOutboundConnSession) Close

func (o *DirectOutboundConnSession) Close() error

func (*DirectOutboundConnSession) Read

func (o *DirectOutboundConnSession) Read(p []byte) (int, error)

func (*DirectOutboundConnSession) Write

func (o *DirectOutboundConnSession) Write(p []byte) (int, error)

type DirectOutboundPacketSession

type DirectOutboundPacketSession struct {
	protocol.PacketSession
	// contains filtered or unexported fields
}

func (*DirectOutboundPacketSession) Close

func (*DirectOutboundPacketSession) ReadPacket

func (o *DirectOutboundPacketSession) ReadPacket() (*protocol.Request, []byte, error)

func (*DirectOutboundPacketSession) WritePacket

func (o *DirectOutboundPacketSession) WritePacket(req *protocol.Request, packet []byte) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL