Commit Graph

18 Commits

Author SHA1 Message Date
Sean DuBois
0c8abd0bc3 Improve STUN/DTLS/SRTP demux, use example from RFC 2018-07-21 12:27:38 -07:00
Sean DuBois
e7ede14f5c De-dupe some OpenSSL code, and make sure we free tlscfg 2018-07-21 12:27:38 -07:00
John R. Bradley
0e43088e58 Add init ack sending, added cookie state 2018-07-21 12:27:38 -07:00
Sean DuBois
5849e549a7 Implement Marshal for multiple structs, with some tests
* Add test for Packet marshal
* Implement Packet, ChunkHeader, ChunkInitAck
* Improve error messages, and de-dupe some comments
2018-07-21 12:27:38 -07:00
Sean DuBois
c7da9212cd Add comments to SCTP + start InitAck 2018-07-21 12:27:38 -07:00
Sean DuBois
51e669e1d8 Improve error handling and enums in SCTP
* Make sure errors in SCTP make it all the way back
* Move structs into files with proper names in SCTP
* Add String() for AssociationState enum
* Add callbacks to Association to that we can handle
  DATA in the DataChannel package and send outbound SCTP
2018-07-21 12:27:38 -07:00
John R. Bradley
93fa676740 Add more association logic, RFC stuff 2018-07-21 12:27:38 -07:00
Sean DuBois
00a56d866c Implement outbound DTLS 2018-07-21 12:27:38 -07:00
Sean DuBois
f2b9791623 Implement SCTP Init chunk, and start InitAck 2018-07-21 12:27:38 -07:00
Sean DuBois
cca92b5dd7 Fix lint, vet and cyclo errors 2018-07-21 12:27:38 -07:00
Sean DuBois
766b1c2d3f Add early return to SCTP chunk parsing when invalid length 2018-07-21 12:27:38 -07:00
Sean DuBois
f7801d4afc Implement structs for SCTP Packet and SCTP chunks 2018-07-21 12:27:38 -07:00
Sean DuBois
b69b185bd5 Initial commit
* DTLS packets are decrypt
* Sending DTLS packets has prototype, but has not been implemented
* We print the SCTP packets, but they aren't parsed yet
2018-07-21 12:27:38 -07:00
backkem
7f682d2d2e api: match WebRTC api more closely 2018-07-16 14:20:18 -07:00
Sean DuBois
de2fb09778 Add support for receiving audio
Update gstreamer-receive to create pipelines for each input.

Currently we don't allow the user to pass in what codecs they support and we don't
take into account the offer. The API will need to be updated to catch
both these signaling errors. The user will pass a slice of support
codecs.
2018-07-01 02:04:47 -07:00
Sean DuBois
bfe324e8c0 Fix go lint warnings 2018-06-30 03:05:58 -07:00
Sean DuBois
5bf9d5af34 Add ICE connection state change notification and timeouts 2018-06-30 02:57:47 -07:00
Sean DuBois
6cd9d069c1 Clean up network.Port
* Split send/recv across two files
* Simplify DTLS handling, makes code cleaner
2018-06-29 01:18:18 -07:00