libcrtc
Public Types | Public Member Functions | Public Attributes | List of all members
crtc::RTCDataChannel Class Referenceabstract

#include <crtc.h>

Inheritance diagram for crtc::RTCDataChannel:
crtc::Reference

Public Types

enum  State { kConnecting, kOpen, kClosing, kClosed }
 
typedef Functor< void(const Let< ArrayBuffer > &buffer, bool binary)> MessageCallback
 

Public Member Functions

virtual int Id ()=0
 
virtual std::string Label ()=0
 
virtual uint64_t BufferedAmount ()=0
 
virtual uint64_t BufferedAmountLowThreshold ()=0
 
virtual void SetBufferedAmountLowThreshold (uint64_t threshold=0)=0
 
virtual uint16_t MaxPacketLifeTime ()=0
 
virtual uint16_t MaxRetransmits ()=0
 
virtual bool Negotiated ()=0
 
virtual bool Ordered ()=0
 
virtual std::string Protocol ()=0
 
virtual State ReadyState ()=0
 
virtual void Close ()=0
 
virtual void Send (const Let< ArrayBuffer > &data, bool binary=true)=0
 

Public Attributes

Callback onbufferedamountlow
 
Callback onclose
 
ErrorCallback onerror
 
MessageCallback onmessage
 
Callback onopen
 

Detailed Description

See also
https://developer.mozilla.org/en/docs/Web/API/RTCDataChannel

Member Function Documentation

§ BufferedAmount()

virtual uint64_t crtc::RTCDataChannel::BufferedAmount ( )
pure virtual

§ BufferedAmountLowThreshold()

virtual uint64_t crtc::RTCDataChannel::BufferedAmountLowThreshold ( )
pure virtual

§ Close()

virtual void crtc::RTCDataChannel::Close ( )
pure virtual

§ Id()

virtual int crtc::RTCDataChannel::Id ( )
pure virtual

§ Label()

virtual std::string crtc::RTCDataChannel::Label ( )
pure virtual

§ MaxPacketLifeTime()

virtual uint16_t crtc::RTCDataChannel::MaxPacketLifeTime ( )
pure virtual

§ MaxRetransmits()

virtual uint16_t crtc::RTCDataChannel::MaxRetransmits ( )
pure virtual

§ Negotiated()

virtual bool crtc::RTCDataChannel::Negotiated ( )
pure virtual

§ Ordered()

virtual bool crtc::RTCDataChannel::Ordered ( )
pure virtual

§ Protocol()

virtual std::string crtc::RTCDataChannel::Protocol ( )
pure virtual

§ ReadyState()

virtual State crtc::RTCDataChannel::ReadyState ( )
pure virtual

§ Send()

virtual void crtc::RTCDataChannel::Send ( const Let< ArrayBuffer > &  data,
bool  binary = true 
)
pure virtual

Member Data Documentation

§ onbufferedamountlow

Callback crtc::RTCDataChannel::onbufferedamountlow

§ onclose

Callback crtc::RTCDataChannel::onclose

§ onerror

ErrorCallback crtc::RTCDataChannel::onerror

§ onmessage

MessageCallback crtc::RTCDataChannel::onmessage

§ onopen

Callback crtc::RTCDataChannel::onopen

The documentation for this class was generated from the following file: