Documentation ¶
Index ¶
- Constants
- Variables
- type Webrtc
- type WebrtcConn
- func (w *WebrtcConn) Close() error
- func (w *WebrtcConn) LocalAddr() net.Addr
- func (w *WebrtcConn) Read(b []byte) (int, error)
- func (w *WebrtcConn) RemoteAddr() net.Addr
- func (w *WebrtcConn) SetDeadline(t time.Time) error
- func (w *WebrtcConn) SetReadDeadline(t time.Time) error
- func (w *WebrtcConn) SetWriteDeadline(t time.Time) error
- func (w *WebrtcConn) Write(b []byte) (int, error)
Constants ¶
View Source
const ( TimeoutSecondConnectWebrtc = 30 OfferIDPrefix = "a=fingerprint:" OfferIDOffset = len(OfferIDPrefix) PACKET_SIZE = 65534 PACKET_NOT_END = 0 PACKET_END = 1 )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Webrtc ¶
type Webrtc struct {
// contains filtered or unexported fields
}
func NewWebrtc ¶
func NewWebrtc( nodeID discover.NodeID, privKey *ecdsa.PrivateKey, url url.URL, h func(conn *WebrtcConn), ) (*Webrtc, error)
func (*Webrtc) CreateOffer ¶
func (w *Webrtc) CreateOffer(nodeID discover.NodeID) (*WebrtcConn, error)
type WebrtcConn ¶
type WebrtcConn struct {
// contains filtered or unexported fields
}
func NewWebrtcConn ¶
func (*WebrtcConn) Close ¶
func (w *WebrtcConn) Close() error
func (*WebrtcConn) LocalAddr ¶
func (w *WebrtcConn) LocalAddr() net.Addr
func (*WebrtcConn) RemoteAddr ¶
func (w *WebrtcConn) RemoteAddr() net.Addr
func (*WebrtcConn) SetDeadline ¶
func (w *WebrtcConn) SetDeadline(t time.Time) error
SetDeadline: skip implementation
func (*WebrtcConn) SetReadDeadline ¶
func (w *WebrtcConn) SetReadDeadline(t time.Time) error
SetReadDeadline: skip implementation
func (*WebrtcConn) SetWriteDeadline ¶
func (w *WebrtcConn) SetWriteDeadline(t time.Time) error
SetWriteDeadline: skip implementation
Click to show internal directories.
Click to hide internal directories.