transport

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QUIC

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

func NewQUIC

func NewQUIC(cert tls.Certificate) *QUIC

func (*QUIC) Accept

func (q *QUIC) Accept() (io.ReadWriteCloser, error)

Accept ...

func (*QUIC) Close

func (q *QUIC) Close() (err error)

Close ...

func (*QUIC) Listen

func (q *QUIC) Listen(addr string) (err error)

type TCP

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

func NewTCP

func NewTCP() *TCP

func (*TCP) Accept

func (t *TCP) Accept() (io.ReadWriteCloser, error)

Accept ...

func (*TCP) Close

func (t *TCP) Close() error

Close ...

func (*TCP) Listen

func (t *TCP) Listen(addr string) (err error)

Listen ...

type Transport

type Transport interface {
	Listen(string) error
	Accept() (io.ReadWriteCloser, error)
	Close() error
}

Jump to

Keyboard shortcuts

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