mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-26 04:28:20 +01:00
Added ability to set the option reuseport
of a tcp socket.
This commit is contained in:
parent
6d5e40c324
commit
833333e131
@ -44,7 +44,7 @@ int opt_get_reuseaddr(lua_State *L, p_socket ps);
|
|||||||
int opt_get_tcp_nodelay(lua_State *L, p_socket ps);
|
int opt_get_tcp_nodelay(lua_State *L, p_socket ps);
|
||||||
int opt_get_keepalive(lua_State *L, p_socket ps);
|
int opt_get_keepalive(lua_State *L, p_socket ps);
|
||||||
int opt_get_linger(lua_State *L, p_socket ps);
|
int opt_get_linger(lua_State *L, p_socket ps);
|
||||||
int opt_get_reuseaddr(lua_State *L, p_socket ps);
|
int opt_get_reuseport(lua_State *L, p_socket ps);
|
||||||
int opt_get_ip_multicast_loop(lua_State *L, p_socket ps);
|
int opt_get_ip_multicast_loop(lua_State *L, p_socket ps);
|
||||||
int opt_get_ip_multicast_if(lua_State *L, p_socket ps);
|
int opt_get_ip_multicast_if(lua_State *L, p_socket ps);
|
||||||
int opt_get_error(lua_State *L, p_socket ps);
|
int opt_get_error(lua_State *L, p_socket ps);
|
||||||
|
@ -71,6 +71,7 @@ static luaL_Reg tcp_methods[] = {
|
|||||||
static t_opt optget[] = {
|
static t_opt optget[] = {
|
||||||
{"keepalive", opt_get_keepalive},
|
{"keepalive", opt_get_keepalive},
|
||||||
{"reuseaddr", opt_get_reuseaddr},
|
{"reuseaddr", opt_get_reuseaddr},
|
||||||
|
{"reuseport", opt_get_reuseport},
|
||||||
{"tcp-nodelay", opt_get_tcp_nodelay},
|
{"tcp-nodelay", opt_get_tcp_nodelay},
|
||||||
{"linger", opt_get_linger},
|
{"linger", opt_get_linger},
|
||||||
{"error", opt_get_error},
|
{"error", opt_get_error},
|
||||||
@ -80,6 +81,7 @@ static t_opt optget[] = {
|
|||||||
static t_opt optset[] = {
|
static t_opt optset[] = {
|
||||||
{"keepalive", opt_set_keepalive},
|
{"keepalive", opt_set_keepalive},
|
||||||
{"reuseaddr", opt_set_reuseaddr},
|
{"reuseaddr", opt_set_reuseaddr},
|
||||||
|
{"reuseport", opt_set_reuseport},
|
||||||
{"tcp-nodelay", opt_set_tcp_nodelay},
|
{"tcp-nodelay", opt_set_tcp_nodelay},
|
||||||
{"ipv6-v6only", opt_set_ip6_v6only},
|
{"ipv6-v6only", opt_set_ip6_v6only},
|
||||||
{"linger", opt_set_linger},
|
{"linger", opt_set_linger},
|
||||||
|
Loading…
Reference in New Issue
Block a user