Skip to content
New issue

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

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

Already on GitHub? # to your account

Networking API UDP peer_addr Missing #110

Closed
pinkforest opened this issue Jun 25, 2022 · 1 comment
Closed

Networking API UDP peer_addr Missing #110

pinkforest opened this issue Jun 25, 2022 · 1 comment

Comments

@pinkforest
Copy link
Contributor

pinkforest commented Jun 25, 2022

Whilst working on lunatic-solutions/lunatic-rs#17 at lunatic-solutions/lunatic-rs#33
I realised that we don't have peer_addr() in host when we connect() and whilst using recv() and send()
If I would cache it in UdpSocket via connect() that would make UdpSocket mutable on connect() which doesn't match std's

@bkolobara
Copy link
Contributor

I think we should add it. At the same time we could add peer_addr for TcpStream too.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants