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 permission and channel handling #6

Merged
merged 3 commits into from
Jul 25, 2023
Merged

Add permission and channel handling #6

merged 3 commits into from
Jul 25, 2023

Conversation

LVala
Copy link
Member

@LVala LVala commented Jul 24, 2023

No description provided.

@LVala LVala requested a review from mickel8 July 24, 2023 13:07
@LVala LVala self-assigned this Jul 24, 2023
Comment on lines +62 to +64
chann_to_time: %{},
chann_to_addr: %{},
addr_to_chann: %{},
Copy link
Member

Choose a reason for hiding this comment

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

wouldn't be it easier to merge this into one map?

Copy link
Member Author

Choose a reason for hiding this comment

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

Wdym? I can at most merge chann_to_addr and chann_to_time, but it would make it less convinient imo. I need one map where keys are addresses when messages arrives from peer as UDP packets and one map where channel numbers are keys when ChannelData arrives from client. @mickel8

%Type{class: :indication, method: :data}
|> Message.new([xor_addr, data])
|> Message.encode()
|> then(&:gen_udp.send(state.turn_socket, c_ip, c_port, &1))
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick, but imo then is unredable

@LVala LVala merged commit bd67713 into master Jul 25, 2023
@LVala LVala deleted the allocation-permisions branch July 25, 2023 13:08
@LVala LVala linked an issue Jul 26, 2023 that may be closed by this pull request
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.

Finish UDP TURN
2 participants