Skip to content

Instantly share code, notes, and snippets.

Lexi is the love of my life, I love her more than she loves me

Sean DuBois Sean-Der

Lexi is the love of my life, I love her more than she loves me
Block or report user

Report or block Sean-Der

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:7eeafe111d627e69a3172027fe6eb697
datachannel_js.go:70:3:TODO: Ensure message order?
datachannel_js_detach.go:22:15:TODO: Potential leak?
datachannel_js_detach.go:25:2:TODO: OnClose?
peerconnection_js.go:76:3:BUG(albrow): This reference to the underlying DataChannel doesn't know
peerconnection_js.go:79:3:fix by keeping a mutex-protected list of all DataChannel references as a
peerconnection_js.go:127:2:TODO: Enable these checks once Certificates are supported.
quictransport.go:128:2:TODO: Check why never received.
sctptransport.go:239:43:TODO: get from SDP
sctptransport.go:240:43:TODO: Get from SCTP implementation
View gist:237fcf18e348749ca2676d200e680892
o=- 471506532038167729 2 IN IP4
t=0 0
a=group:BUNDLE 0 1
a=msid-semantic: WMS L7E883xNBmOTumdCwEGvbbZKAa617fGWuop1
m=audio 60915 UDP/TLS/RTP/SAVPF 111 103 104 9 0 8 106 105 13 110 112 113 126
c=IN IP4
a=rtcp:9 IN IP4
a=candidate:704553097 1 udp 2113937151 d1c8d7f6-f7cb-4fdf-b242-bd7431c64469.local 60915 typ host generation 0 network-cost 999
View bench.c
#include <srtp2/auth.h>
#include <srtp2/cipher.h>
#include <srtp2/crypto_types.h>
#include <srtp2/srtp.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
char SKEL_RTP_PACKET[17] = {0x80, 0x60, 0x69, 0x8f, 0xd9, 0xc2, 0x93, 0xda, 0x1c, 0x64, 0x27, 0x82, 0x98, 0x36, 0xbe, 0x88, 0x9e};
View gist:a1720422dfe233d3daf6623afb6bf9ae
diff --git a/candidate_base.go b/candidate_base.go
index b5cb216..6628711 100644
--- a/candidate_base.go
+++ b/candidate_base.go
@@ -95,6 +95,7 @@ func (c *candidateBase) recvLoop() {
+ fmt.Printf("Read %s -> %s", srcAddr, c.addr())
handleInboundCandidateMsg(c, buffer[:n], srcAddr, log)
View gist:89294713f5194304da9661bd584eef48
diff --git a/candidate_relay.go b/candidate_relay.go
index 12f9f92..769af0d 100644
--- a/candidate_relay.go
+++ b/candidate_relay.go
@@ -2,6 +2,7 @@ package ice
import (
+ "fmt"
View gist:0b341f505e4090ff87e24b7c2315e4ec
diff --git a/examples/pion-to-pion/answer/main.go b/examples/pion-to-pion/answer/main.go
index 556d532..d7a6c5e 100644
--- a/examples/pion-to-pion/answer/main.go
+++ b/examples/pion-to-pion/answer/main.go
@@ -22,9 +22,12 @@ func main() {
config := webrtc.Configuration{
ICEServers: []webrtc.ICEServer{
- URLs: []string{""},
+ URLs: []string{"turn:localhost"},
View gist:dbd0ed46c9d05798bdf4ecf66224fb07
ice ERROR: 2019/06/07 10:33:54 error processing checkCandidatesTimeout handler the agent is closed
--- FAIL: TestRelayOnlyConnection (12.21s)
util.go:38: Unexpected routines:
goroutine 9 [IO wait]:
internal/poll.runtime_pollWait(0x1f71dd8, 0x72, 0xffffffffffffffff)
/usr/local/Cellar/go/1.12.5/libexec/src/runtime/netpoll.go:182 +0x56
internal/poll.(*pollDesc).wait(0xc000462098, 0x72, 0x500, 0x5dc, 0xffffffffffffffff)
/usr/local/Cellar/go/1.12.5/libexec/src/internal/poll/fd_poll_runtime.go:87 +0x9b
View gist:54ac26a29227f72899b6344c7914fd32
diff --git a/examples/data-channels/main.go b/examples/data-channels/main.go
index 4df8065..fd438d7 100644
--- a/examples/data-channels/main.go
+++ b/examples/data-channels/main.go
@@ -15,9 +15,12 @@ func main() {
config := webrtc.Configuration{
ICEServers: []webrtc.ICEServer{
- URLs: []string{""},
+ URLs: []string{"turn:localhost"},
View main.go
package main
import (
View gist:cbc0532c491dd7e6b9932a37520d1d04
diff --git a/gather.go b/gather.go
index fed2056..e017c9e 100644
--- a/gather.go
+++ b/gather.go
@@ -85,6 +85,7 @@ func listenUDP(portMax, portMin int, network string, laddr *net.UDPAddr) (*net.U
func gatherCandidatesLocal(a *Agent, networkTypes []NetworkType) {
+ return
localIPs := localInterfaces(networkTypes)
You can’t perform that action at this time.