plainudp

package
v0.0.0-...-d3354c4 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: LGPL-2.1 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	net.Conn
	// contains filtered or unexported fields
}

func (*Conn) MTU

func (c *Conn) MTU() int

func (*Conn) Open

func (c *Conn) Open(idstr string) (transports.Channel, error)

func (*Conn) RemoteID

func (c *Conn) RemoteID() friends.ID

type Dialer

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

func NewDialer

func NewDialer(kp *f2fcrypto.KeyPair, laddr string) *Dialer

func (*Dialer) Dial

func (d *Dialer) Dial(who friends.ID, raddr string) (transports.MuxingConn, error)

type Listener

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

func NewListener

func NewListener(kp *f2fcrypto.KeyPair, laddr string) (l *Listener, err error)

func (*Listener) Accept

func (l *Listener) Accept() (transports.MuxingConn, error)

func (*Listener) Addr

func (l *Listener) Addr() string

func (*Listener) Close

func (l *Listener) Close() error

type MuxedConn

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

func (*MuxedConn) Close

func (mc *MuxedConn) Close() error

func (*MuxedConn) MTU

func (mc *MuxedConn) MTU() int

func (*MuxedConn) Parent

func (mc *MuxedConn) Parent() transports.MuxingConn

func (*MuxedConn) Read

func (mc *MuxedConn) Read(p []byte) (n int, err error)

func (*MuxedConn) Write

func (mc *MuxedConn) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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