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

server-dtls13-event.c example not work on windows #447

Open
FutureKosmos opened this issue Jul 25, 2024 · 1 comment
Open

server-dtls13-event.c example not work on windows #447

FutureKosmos opened this issue Jul 25, 2024 · 1 comment
Assignees

Comments

@FutureKosmos
Copy link

For this example, I'm actually quite confused as to why UDP is being emulated to behave like TCP. And for scenarios that support multiple clients, aside from having the DTLS server recreate a socket when it receives client data and then bind it to the same address as the listening socket, are there no other methods? Because doing this is not supported by every operating system.

@ejohnstown
Copy link
Contributor

For our example and demonstration code, we found it easiest to do it that way so we didn't have to deal with it at the application level. It is a demonstration for setting up the DTLS connection, not for UDP networking. For that, the server would need to have some kind of map linking an IP address quad to the WOLFSSL object for the DTLS session.

Portability is always an issue. And code that works for both Windows and Linux might not work with some embedded RTOS or network stack as well.

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