Skip to content

Is it possible to share a UDP socket between server and client? #1606

Answered by nibanks
timprepscius asked this question in Q&A
Discussion options

You must be logged in to vote

It is almost possible to share the socket, but due to some protocol complexities around how you look up the connection from the packet header during the handshake, server and client are unfortunately mutually exclusive. Post handshake they could theoretically share, but obviously you have to get through the handshake first. If you're interested in the nitty-gritty details, let me know and I will see about adding them later.

Edit: BTW, MsQuic used to support sharing until I discovered the edge case bug for which the fix required them to be exclusive.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@nibanks
Comment options

@nibanks
Comment options

@timprepscius
Comment options

@nibanks
Comment options

@timprepscius
Comment options

Answer selected by timprepscius
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants