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

Add platform-specific socket setting functions #14

Merged
merged 3 commits into from
Feb 15, 2024

Conversation

ryanbekhen
Copy link
Contributor

The commit introduces two new files called util_windows.go and util_unix.go which contain specific socket options' settings for Windows and Unix. These functions replace the previous implementation in util.go, resulting in cleaner code and segregating functionalities based on the system platform.

The commit introduces two new files called `util_windows.go` and `util_unix.go` which contain specific socket options' settings for Windows and Unix. These functions replace the previous implementation in `util.go`, resulting in cleaner code and segregating functionalities based on the system platform.
The commit updates the Unix socket settings function from using the SO_REUSEADDR option to the SO_REUSEPORT option. This change is made in the `util_unix.go` file. SO_REUSEPORT is preferable as it permits multiple sockets to be bound to an identical socket address.
@tyohan
Copy link
Member

tyohan commented Feb 15, 2024

@ryanbekhen, thank you for the PR. Can you pull the latest to make sure the test gets passed?

Can you also share what you want to develop with this SFU lib? Is there anything missing you would like to have in the lib?

@ryanbekhen
Copy link
Contributor Author

OK, I'll try tonight, and for now I'm still studying this library first, if there's anything that needs to be added, maybe I can let you know.

@ryanbekhen
Copy link
Contributor Author

@tyohan Maybe for now, in my opinion, it is for support for other operating systems too, so that if there are other developers who want to develop, they can use the operating system they have.

@ryanbekhen
Copy link
Contributor Author

@tyohan can you test again

@tyohan tyohan merged commit 2f68937 into inlivedev:main Feb 15, 2024
1 check passed
@ryanbekhen ryanbekhen deleted the support-unix-and-windows branch February 15, 2024 16:55
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