Documentation
¶
Index ¶
- Constants
- type Agent
- func (a *Agent) Destroy() error
- func (a *Agent) GatherCandidates() error
- func (a *Agent) GenerateSdp() string
- func (a *Agent) ParseCandidateSdp(sdp string) (int, error)
- func (a *Agent) ParseSdp(sdp string) (int, error)
- func (a *Agent) Run() error
- func (a *Agent) Send(data []byte) (int, error)
- func (a *Agent) SetStunPort(port int)
- func (a *Agent) SetStunServer(ip string)
- type Candidate
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 NewReliableAgent ¶
func (*Agent) GatherCandidates ¶
func (*Agent) GenerateSdp ¶
func (*Agent) SetStunPort ¶
func (*Agent) SetStunServer ¶
Click to show internal directories.
Click to hide internal directories.