Commit Graph

21 Commits

Author SHA1 Message Date
Sean DuBois 217c656222 Assert MessageIntegrity/Username for inbound
When we get an inbound message assert these values, also discard any
other packet types besides binding. In the future we should extend to
handle inbound error messages

Resolves #19
Resolves #21
2019-04-14 01:22:18 -07:00
Sean DuBois f58e725a2c Send connectivity checks right on agent start
Connectivity checks are done via a Ticker, the inital tick does not
happen immediately (by design) causing the startup time to be the
Duration the Ticker is created with.

This change adds another chan forceCandidateContact that can be used to
force contact at anytime. Currently it is only called on startup, but
could be useful in the future for reuse.

Resolve #15
2019-04-13 11:31:04 -07:00
Michael MacDonald ad7c8697fd Candidate priority is incorrectly calculated
Some constants were being incorrectly generated using 2^N (XOR)
instead of 1 << N. This resulted in incorrect candidate priorities
being used to evaluate candidate pairs.

Resolves #14.
2019-04-11 13:40:39 -04:00
Sean DuBois 7245ac0866 Don't modify config.LoggerFactory
Avoid possible data race
2019-04-06 14:06:58 -07:00
Sean DuBois e4dd2be156 Disallow stdlib functions that print to stdio
All printing to stdio must be done via pion/logging,
all calls to common printing functions will not cause CI
to fail

Relates to pion/webrtc#361
2019-04-05 13:28:00 -07:00
Sean DuBois af1bcf662b Mass replace pions -> pion
Pions organization was renamed to pion
2019-04-04 14:22:31 -07:00
Hugo Arregui 91d046483f Update pions/logging to v0.2.0
Support custom loggers
2019-04-01 10:44:36 -03:00
Sean DuBois 3580f6234f Return typed error when no candidate pairs
Returning a typed error allows us to handle it gracefully in
pions/webrtc
2019-03-26 00:50:44 -07:00
Sean DuBois 8b4aeeaa8d Docs: Add readme and CI
Added the readme and CI using the common style.
2019-03-25 16:04:12 -07:00
backkem de29578470 Move logging out of tree
Relates to #361
2019-03-21 12:48:57 +01:00
Luke Curley 70092d3a81 Optimize Read by buffering
Increases the Read performance to acceptable levels. Packet loss went
from roughly 8% to 0.5% with this change.
2019-03-12 21:34:48 -07:00
Konstantin Itskov 052b3f98c6 Add a customization to control network types
- Fix an issue with ipv6 srflx candidates gathering.
- Add SetNetworkTypes config to SettingEngine to control what network
  types are allowed to be connected.

Resolves #460
2019-03-12 21:36:52 -04:00
Sean DuBois be2ef55e62 Remove pkg/errors dependency
Lots of people are paying attention to what dependecies we add to their
projects now. This just makes things a little cleaner.

Resolves #469
2019-03-06 09:34:10 -08:00
Konstantin Itskov 30763bbf3f Update LocalInterfaces() to comply with spec
Resolves #466
2019-03-03 21:15:43 -08:00
Michael MacDonald dc966e04a9 Move pkg/ice to internal/ice
Avoid exposing any non-standard API.
2019-03-01 08:07:42 -05:00
Sean DuBois a202ccbf2f Revert "Move ICE package from public to internal folder structure"
ICE Package needs to be public for peerConnection.OnICEConnectionStateChange

This reverts commit b831f87d28b78044118c4eb66f9b3152d373349b.
2018-08-16 10:10:29 -07:00
Sean DuBois 39211691f5 Fix GoDoc lints 2018-08-16 01:42:37 -07:00
Konstantin Itskov 44939bbf87 Move ICE package from public to internal folder structure 2018-08-16 01:28:48 -07:00
Sean DuBois d236440229 Add ICE connection state change notification and timeouts 2018-06-30 02:57:47 -07:00
Sean DuBois 8c051cf652 Fix all golint errors 2018-06-12 22:24:52 -07:00
Sean DuBois 51f863b466 Refactor to match WebRTC Native API 2018-06-10 01:18:02 -07:00