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 FreeBSD support #6

Open
mihirlad55 opened this issue Jul 26, 2020 · 3 comments
Open

Add FreeBSD support #6

mihirlad55 opened this issue Jul 26, 2020 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@mihirlad55
Copy link
Owner

Look into using select. Not sure if this is more widely supported.

Another alternative is to separate epoll into a separate file and use macros to determine whether to use kqueue or epoll.

@mihirlad55 mihirlad55 added the enhancement New feature or request label Jul 26, 2020
@mihirlad55 mihirlad55 self-assigned this Jul 31, 2020
@bakkeby
Copy link
Contributor

bakkeby commented Dec 4, 2021

Hi @mihirlad55,

I know that you are very busy with your education and other things, but I was wondering if this is something that you started with and abandoned or if you never got around to it at all?

I am trying to gauge how much effort this would be to achieve. My first impression is that it is a fairly sizeable task.


Thanks,

-Stein

@mihirlad55
Copy link
Owner Author

Hello @bakkeby ,

I never got around to starting it. The main task, iirc, would be coding the FreeBSD analog of epoll and modifying the code to compile using either kqueue (i think is the FreeBSD equivalent of epoll) for FreeBSD or using epoll for Linux. I believe the rest of the socket code is relatively the same for FreeBSD and Linux, though my knowledge is a little rusty on this subject.

@bakkeby
Copy link
Contributor

bakkeby commented Dec 4, 2021

I don't have any experience with this myself. Potentially one could use libevent which is supposed to be a cross-platform library that supports epoll, kqueue and other poll mechanisms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants