luasocket icon indicating copy to clipboard operation
luasocket copied to clipboard

Provide RAW access to socket options

Open margau opened this issue 5 years ago • 1 comments

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!

margau avatar Jul 17 '20 20:07 margau

Is this still an issue?

alerque avatar Nov 10 '23 19:11 alerque