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

Allow Setting Socket Type on Creation #76

Open
ckreiling opened this issue Sep 26, 2019 · 1 comment
Open

Allow Setting Socket Type on Creation #76

ckreiling opened this issue Sep 26, 2019 · 1 comment

Comments

@ckreiling
Copy link

Currently the default Unix Socket Type is set to SOCKET_STREAM. I have a use case for SOCKET_SEQPACKET, but unfortunately have to edit the source code myself in order to achieve this.

Is there perhaps a chance that the static connect functions could be overloaded for the socket type to be passed as an option?

@headius
Copy link
Member

headius commented Jan 9, 2020

Perhaps you could put together a PR like this one?

#46

Someone else also wanted to expose the socket API in #45 (fixing #44) but since this isn't a general-purpose BSD socket library I'd prefer to do that as a separate jnr project (jnr-socket, for example). This project would then depend on that one.

If you would like to help on either of these items, let me know!

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

2 participants