connection

package
v0.0.0-...-84940ad Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQUIC

func NewQUIC(conn quic.Session, stream quic.Stream, laddr, raddr net.Addr) network.Connection

func NewTCP

func NewTCP(conn *net.TCPConn, laddr, raddr net.Addr) network.Connection

func NewUDP

func NewUDP(conn conn, laddr, raddr net.Addr, write bool) network.Connection

Types

type QUIC

type QUIC struct {
	// contains filtered or unexported fields
}

func (*QUIC) Close

func (c *QUIC) Close() error

func (*QUIC) GetError

func (c *QUIC) GetError() error

func (*QUIC) Receive

func (c *QUIC) Receive() (network.Message, error)

func (*QUIC) Send

func (c *QUIC) Send(message network.Message) error

func (*QUIC) SetError

func (c *QUIC) SetError(err error)

type TCP

type TCP struct {
	// contains filtered or unexported fields
}

func (*TCP) Close

func (c *TCP) Close() error

func (*TCP) GetError

func (c *TCP) GetError() error

func (*TCP) Receive

func (c *TCP) Receive() (network.Message, error)

func (*TCP) Send

func (c *TCP) Send(message network.Message) error

func (*TCP) SetError

func (c *TCP) SetError(err error)

type UDP

type UDP struct {
	// contains filtered or unexported fields
}

func (*UDP) Close

func (c *UDP) Close() error

func (*UDP) GetError

func (c *UDP) GetError() error

func (*UDP) Receive

func (c *UDP) Receive() (network.Message, error)

func (*UDP) Send

func (c *UDP) Send(message network.Message) error

func (*UDP) SetError

func (c *UDP) SetError(err error)

Jump to

Keyboard shortcuts

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