Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add IceConnection Interface #877

Merged
merged 6 commits into from
May 4, 2017

Conversation

jcague
Copy link
Contributor

@jcague jcague commented May 3, 2017

Description

It adds a new C++ interface for IceConnection. It will help us using libraries others than libNice in the future. I also create an empty instantiation of a NicerConnection that also inherits from IceConnection. We will be able to enable it in the future by adding -DUSE_NICER to the builds.

[] It needs and includes Unit Tests

Changes in Client or Server public APIs

Not needed.

[] It includes documentation for these changes in /doc.

std::string clientHostType;
};

class IceConfig {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lodoyun can you review the new IceConfig? I added media_type transport_name, connection_id, ice_components, username and password and removed them from the NiceConnection constructor.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT, at some point (not in this PR) we should probably refactor how we pass the configuration. Right now it comes directly from erizoAPI and is filled in progressively in several steps, there's probably a more consistent way to do it.

Copy link
Contributor

@lodoyun lodoyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Nice! In general I think it's a good idea to progressively abstract the Ice operations in the interface and get them closer to the standard, instead of what a particular library (Libnice in this case) does.

@@ -10,7 +10,8 @@

#include "./SrtpChannel.h"
#include "rtp/RtpHeaders.h"
#include "lib/LibNiceInterface.h"
#include "./NiceConnection.h"
#include "./NicerConnection.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we could find an alternative name for one of them. I'm sure I will confuse Nice and Nicer at some point. Maybe LibNiceConnection and NicerConnection ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is funny

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep 😄 , I renamed NiceConnection to LibNiceConnection anyway to avoid confusions in the future, as Pedro suggested before.

std::string clientHostType;
};

class IceConfig {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGMT, at some point (not in this PR) we should probably refactor how we pass the configuration. Right now it comes directly from erizoAPI and is filled in progressively in several steps, there's probably a more consistent way to do it.

@jcague jcague merged commit c9a2a39 into lynckia:master May 4, 2017
@jcague jcague deleted the add/ice_connection_interface branch May 4, 2017 15:04
Arri98 pushed a commit to Arri98/licode that referenced this pull request Apr 6, 2021
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