luasocket
luasocket copied to clipboard
Provide RAW access to socket options
Hi,
I need to set the "IPV6_V6ONLY"-Parameter for allowing dual stack sockets.
Would it be possible to expose the int opt_set(lua_State *L, p_socket ps, int level, int name, void *val, int len) function from https://github.com/diegonehab/luasocket/blob/c89a931cc31f219d51dd32a8a253d5ee3fbd31be/src/options.c#L411 to the API? This would also simplify other use cases, were Socket Options are necessary.
Thanks!
Is this still an issue?