Skip to content

Conversation

@mo3rfan
Copy link
Contributor

@mo3rfan mo3rfan commented May 10, 2017

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
Copy link
Owner

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

@mo3rfan
Copy link
Contributor Author

mo3rfan commented May 11, 2017

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

@mo3rfan
Copy link
Contributor Author

mo3rfan commented May 24, 2017

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
Copy link
Owner

Awesome, thanks for sharing all this hard work!

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

mo3rfan and others added 13 commits June 20, 2017 12:09
This is to test the newly implemented
GenerateOffer API.
Previously, the data channel object was not being created
for the peer that generates the offer/datachannel.

Included fixes:

* Send ACK after receiving DATA_CHANNEL_OPEN
* Pass and return uint16_t for all SIDs instead of int
* Calls new channel and on_open callbacks inside HandleAck
* Some formatting fixes
The ACK fails to send on pi/ARM for some reason. Data channel won't be created if this happens, so we'll throw an exception here.
The proper SID needs to be set for
sending the acknowledgement on that SID.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants