chadnickbok / librtcdcpp

A simple WebRTC DataChannels library
BSD 3-Clause "New" or "Revised" License
158 stars 41 forks source link

generateOffer and CreateDataChannel APIs #30

Open mo3rfan opened 7 years ago

mo3rfan commented 7 years ago

In order to facilitate a connection between two Cpp clients instead of the browser, we've added PeerConnection::GenerateOffer() and PeerConnection::CreateDataChannel(std::string label, std::string protocol)

To see it in action, run the websockets server, followed by testclientanswer in one terminal and testclientoffer in another, in that order.

We've also included some general fixes that we've come across:

chadnickbok commented 7 years ago

Howdy; did you want me to take a look at this, or are you closing while some more changes are made?

mo3rfan commented 7 years ago

I closed this to make some more changes. Will reopen once it's ready :)

mo3rfan commented 7 years ago

I think this should be all for this PR to be feature complete and functional.

EDIT: Totally forgot that I hardcoded a few stuff and probably need to add a few things for the SCTP layer on handling different channel types.

chadnickbok commented 7 years ago

Awesome, thanks for sharing all this hard work!

I'll try to take a look at this tonight and get back to you asap.