[erlang-questions] Setting packet option in ranch

Roberto Ostinelli ostinelli@REDACTED
Wed Oct 16 14:33:18 CEST 2019

I cannot see how to set the {packet, 4} option with ranch.

ranch:start_listener(packet_test, packet_tcp, #{socket_opts => [{packet,
4}, {port, 4444}]}, packet_test, []),

However I get a "Transport option {packet, 4} unknown or invalid" error.

Any pointers?

Thank you,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20191016/94a156eb/attachment.htm>

More information about the erlang-questions mailing list