[erlang-questions] inet options / getopts

Antonio SJ Musumeci trapexit@REDACTED
Fri May 22 02:04:46 CEST 2015

I've got a situation where I'd like to in effect duplicate a socket. Look
at it's options, peername, etc. and make another connection. Looking over
inet.erl I discovered inet:options/0 which provides a list of possible
options which can/could be used with inet:getopts/2 but I noticed a few
missing keys such as packet_size. Further in the module you'll see
connection_options/0 and listen_options/0 which would be perfect but they
aren't exported.

Anyone know why these aren't exported or why there isn't a shortcut to the
option list to getopts/2 like 'all'? Would there be any interest in a patch
providing some of this functionality?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150521/b28d8481/attachment.htm>

More information about the erlang-questions mailing list