Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Use 'getprotobyname' #4

Open
superbobry opened this Issue · 4 comments

2 participants

@superbobry

Hello, I think procket should call getprotobyname instead of using hardcoded protocol numbers, since the actual values are platform dependant and can be overriden in /etc/protocols/.

@msantos
Owner
@superbobry

Michael,

I wasn't aware that protocol numbers are fixed -- in that case, maybe hardcoding them isn't a bad idea; but overall, I think delegating this part to 'libc' might still be a better solution. Especially since you already have a procket nif, so adding one more function to it is a noproblem :)

@msantos
Owner
@superbobry

This sounds totally reasonable. I've looked through 'getprotobyname' code and it does nothing special -- so implementing it in Erlang would be just as easy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.