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 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)
View gist:8fa830efc9c4ece3c472d2a188e683ac
diff --git a/server_handlers.go b/server_handlers.go
index 7d6abbc..384f6cc 100644
--- a/server_handlers.go
+++ b/server_handlers.go
@@ -264,7 +264,7 @@ func serverFlightHandler(c *Conn) (bool, error) {
content: &handshake{
// sequenceNumber and messageSequence line up, may need to be re-evaluated
handshakeHeader: handshakeHeader{
- messageSequence: uint16(sequenceNumber),
+ messageSequence: 1,
View gist:9c4c2d286cf040cc2ff61277a18490bd
diff --git a/ b/
index 9868096..2b95e8f 100644
--- a/
+++ b/
@@ -7,18 +7,18 @@
<p align="center">
<a href=""><img src="" alt="Pion transport"></a>
<a href=""><img src="" alt="Slack Widget"></a>
- <a href=""><img src="" alt="Waffle board"></a>
+ <a href=""><img src="" alt="Waffle board"></a>
You can’t perform that action at this time.