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

Define socket ID ranges #85

Open
maxsharabayko opened this issue Feb 17, 2021 · 0 comments
Open

Define socket ID ranges #85

maxsharabayko opened this issue Feb 17, 2021 · 0 comments

Comments

@maxsharabayko
Copy link
Collaborator

maxsharabayko commented Feb 17, 2021

Define ranges of valid Socket ID values.

  • Value 0. Reserved for handshake procedure. If the destination Socket ID is 0 (destination Socket ID unknown) the packet will be sent to the listening socket or to a socket that is in the rendezvous connection phase.

  • [1; 2^30). Single socket ID range.

  • (2^30; 2^31). Group socket ID range. Effectively any positive number from [1; 2^30) with bit 30 set to 1.

The most significant bit 31 (sign bit) is left unused so that checking for a value <= 0 identifies an invalid socket ID.

Some of those ranges are the SRT library limitations. The SRT protocol can potentially use the whole range except for 0 and -1.

@maxsharabayko maxsharabayko changed the title Socket ID range Define socket ID ranges Feb 19, 2021
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

1 participant