srt

package module
v0.0.0-...-27a5cdf Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: MIT Imports: 13 Imported by: 0

README

srt

Secure Reliable Transport Protocol

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrShortBuffer = io.ErrShortBuffer

Functions

This section is empty.

Types

type Conn

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

func (*Conn) Close

func (c *Conn) Close() (err error)

func (*Conn) LocalAddr

func (c *Conn) LocalAddr() net.Addr

func (*Conn) Read

func (c *Conn) Read(p []byte) (n int, err error)

func (*Conn) RemoteAddr

func (c *Conn) RemoteAddr() net.Addr

func (*Conn) Write

func (c *Conn) Write(p []byte) (n int, err error)

type Listener

type Listener struct {
	Encryption int

	MaxTransmissonUnit int
	MaxFlowWindow      int
	// contains filtered or unexported fields
}

func New

func New(p net.PacketConn) (l *Listener)

func (*Listener) Accept

func (l *Listener) Accept() (c net.Conn, err error)

func (*Listener) Addr

func (l *Listener) Addr() net.Addr

func (*Listener) Close

func (l *Listener) Close() (err error)

func (*Listener) Connect

func (l *Listener) Connect(ctx context.Context, addr net.Addr) (_ *Conn, err error)

func (*Listener) WriteTo

func (l *Listener) WriteTo(p []byte, addr net.Addr) (n int, err error)

Directories

Path Synopsis
cmd
srt command
canonical module

Jump to

Keyboard shortcuts

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