sender

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 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 Config

type Config struct {
	common.Configuration
	Stream io.Reader // The Stream to read from
}

Config contains custom configuration for a session

type Session

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

Session is a sender session

func New

func New(f io.Reader) *Session

New creates a new receiver session

func NewWith

func NewWith(c Config) *Session

NewWith createa a new sender Session with custom configuration

func (*Session) Initialize

func (s *Session) Initialize() error

Initialize creates the connection, the datachannel and creates the offer

func (*Session) SDPProvider

func (s *Session) SDPProvider() io.Reader

SDPProvider returns the underlying SDPProvider

func (*Session) SetStream

func (s *Session) SetStream(stream io.Reader)

SetStream changes the stream, useful for WASM integration

func (*Session) Start

func (s *Session) Start() error

Start the connection and the file transfer

Jump to

Keyboard shortcuts

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