transport

package
v0.0.0-...-656dd02 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RuvchainDial

type RuvchainDial struct {
	context.Context
	context.CancelFunc
}

type RuvchainListener

type RuvchainListener struct {
	*RuvchainTransport
}

func (*RuvchainListener) Accept

func (t *RuvchainListener) Accept() (net.Conn, error)

func (*RuvchainListener) Addr

func (t *RuvchainListener) Addr() net.Addr

func (*RuvchainListener) Close

func (t *RuvchainListener) Close() error

type RuvchainSession

type RuvchainSession struct {
	quic.Connection
	quic.Stream
}

type RuvchainTransport

type RuvchainTransport struct {
	Ruvchain net.PacketConn
	// contains filtered or unexported fields
}

func NewRuvchainTransport

func NewRuvchainTransport(log *log.Logger, sk ed25519.PrivateKey, pk ed25519.PublicKey, peers []string, mcast bool) (*RuvchainTransport, error)

func (*RuvchainTransport) Dial

func (t *RuvchainTransport) Dial(host string) (net.Conn, error)

func (*RuvchainTransport) Listener

func (t *RuvchainTransport) Listener() net.Listener

type Transport

type Transport interface {
	Dial(host string) (net.Conn, error)
	Listener() net.Listener
}

Jump to

Keyboard shortcuts

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