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

DTLS: Add server single socket demultiplexing example #472

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

julek-wolfssl
Copy link
Member

Also added CID clients for dtls 1.2 and 1.3. The clients change port after sending each message.
struct ConnList* conn = NULL;
int found = 0;
/* Generate CID */
if (wc_RNG_GenerateBlock(rng, newCid, sizeof(newCid)) != 0) {
Copy link
Contributor

Choose a reason for hiding this comment

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

to keep example as small as possible, just start for CID 0 and increment to preserve uniqueness

Copy link
Member Author

Choose a reason for hiding this comment

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

Users should use random CID's to not leak the amount of connections to clients. This is a self contained section. I don't think it introduces too much complexity.

@julek-wolfssl julek-wolfssl requested a review from rizlik December 11, 2024 17:57
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.

2 participants