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

Is there a function for get_dest_addr ? #6999

Open
ManonBillet opened this issue Nov 23, 2023 · 2 comments
Open

Is there a function for get_dest_addr ? #6999

ManonBillet opened this issue Nov 23, 2023 · 2 comments
Assignees

Comments

@ManonBillet
Copy link

Version

5.6.3

Description

I'm making a custom dtls server with multithread and I need to find the ip address for the destination.
Have you a function who allows this feature ?

@anhu anhu self-assigned this Nov 23, 2023
@anhu
Copy link
Member

anhu commented Nov 23, 2023

Hi @ManonBillet

the way you asked your question seems a bit vague. You are making a DTLS server and would like to know ip address of the destination. Do you mean when you get a connection request from a client, you would like to know the ip address for the client?

If this is the question you are asking, then perhaps this related post is useful:

https://www.linuxquestions.org/questions/programming-9/how-to-get-client-ip-address-at-udp-server-304252/

Note that in DTLS the address is a UDP level concept.

Warm regards, Anthony

@ManonBillet
Copy link
Author

ManonBillet commented Nov 24, 2023 via email

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

No branches or pull requests

2 participants