goblice

package module
v0.0.0-...-1298e8f Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2015 License: BSD-2-Clause Imports: 4 Imported by: 1

README

Go bindings for libnice by a smart goblin (work in progress).

This library is used by gortcdc, and it makes NO effort to provide a complete binding.

Documentation

Index

Constants

View Source
const (
	EventGatheringDone   = 0
	EventNegotiationDone = 1
	EventStateChanged    = 2
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	DataChannel      chan []byte
	EventChannel     chan int
	CandidateChannel chan string
	// contains filtered or unexported fields
}

func NewAgent

func NewAgent() (*Agent, error)

func NewReliableAgent

func NewReliableAgent() (*Agent, error)

func (*Agent) Destroy

func (a *Agent) Destroy() error

func (*Agent) GatherCandidates

func (a *Agent) GatherCandidates() error

func (*Agent) GenerateSdp

func (a *Agent) GenerateSdp() string

func (*Agent) ParseCandidateSdp

func (a *Agent) ParseCandidateSdp(sdp string) (int, error)

func (*Agent) ParseSdp

func (a *Agent) ParseSdp(sdp string) (int, error)

func (*Agent) Run

func (a *Agent) Run() error

func (*Agent) Send

func (a *Agent) Send(data []byte) (int, error)

func (*Agent) SetStunPort

func (a *Agent) SetStunPort(port int)

func (*Agent) SetStunServer

func (a *Agent) SetStunServer(ip string)

type Candidate

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

Jump to

Keyboard shortcuts

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