send

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	PeerConnection *webrtc.PeerConnection
	// contains filtered or unexported fields
}

To manage the datachannels and PeerConnection.

func NewSession

func NewSession(numberOfFiles int) *Session

Returns new Session object with some default values.

func (*Session) Connect

func (s *Session) Connect(answer webrtc.SessionDescription) error

Connects clients.

func (*Session) GenOffer added in v0.5.0

func (s *Session) GenOffer() (string, error)

func (*Session) PrintOffer added in v0.5.0

func (s *Session) PrintOffer() error

Creates offer and encodes it in base64.

func (*Session) SetupConnection added in v0.5.0

func (s *Session) SetupConnection(paths []string) error

Jump to

Keyboard shortcuts

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