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

Introduce Machinery for Servicing STUN Parameters @ A Semantic Level #2

Merged
merged 2 commits into from
Jan 27, 2017

Conversation

Dzol
Copy link
Contributor

@Dzol Dzol commented Jan 25, 2017

A general way to service all kinds of STUN message: STUN methods, attributes, and servicing that's applicable to all kinds of STUN message classes can be added easily and understandably.

case class(p) do
:request ->
Fennec.Evaluator.Request.service(p, changes)
:_ ->
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a bug.

defmodule Fennec.Evaluator do
@moduledoc """

Common to ALL TURN/STUN. E.g. authentication.
Copy link
Contributor

Choose a reason for hiding this comment

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

We should remove whitespaces around that line

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm thinking, do we need a moduldoc for this module? It will only be used internally, we won't expose this API to users, right?

@@ -0,0 +1,49 @@
defmodule Fennec.Evaluator.Request do
@moduledoc """
Copy link
Contributor

Choose a reason for hiding this comment

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

The same thing with docs as above.

@arkgil arkgil merged commit 5a56c89 into master Jan 27, 2017
@arkgil arkgil deleted the service-machinery branch January 27, 2017 14:46
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.

2 participants