Skip to content

WIP: [connection] public API to retrieve peer address#122

Open
Aniketh01 wants to merge 1 commit intoaiortc:mainfrom
Aniketh01:retrieve-peer-addr
Open

WIP: [connection] public API to retrieve peer address#122
Aniketh01 wants to merge 1 commit intoaiortc:mainfrom
Aniketh01:retrieve-peer-addr

Conversation

@Aniketh01
Copy link
Copy Markdown

No description provided.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jul 9, 2020

Codecov Report

Merging #122 into main will decrease coverage by 0.02%.
The diff coverage is 50.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##              main     #122      +/-   ##
===========================================
- Coverage   100.00%   99.97%   -0.03%     
===========================================
  Files           24       24              
  Lines         4250     4252       +2     
===========================================
+ Hits          4250     4251       +1     
- Misses           0        1       +1     
Impacted Files Coverage Δ
src/aioquic/quic/connection.py 99.91% <50.00%> (-0.09%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 50fb0f7...fa6579e. Read the comment docs.

@ahopkins
Copy link
Copy Markdown

ahopkins commented Dec 9, 2021

Why isn't this merged? What work is left? Just tests?

@jlaine
Copy link
Copy Markdown
Contributor

jlaine commented Dec 30, 2021

At first glance: tests, docstring for the new API.

What's not pleasant: we are arbitrarily returning the first network address. There may be others.

@ahopkins
Copy link
Copy Markdown

Maybe an API like this:

connection.peer_addresses.get()  # retrieves the first
connection.peer_addresses.getall()  # retrieves the list
connection.peer_address == connection.peer_addresses.get() 

@HarshArora-1205
Copy link
Copy Markdown

Any updates to this?

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.

4 participants