aboutsummaryrefslogtreecommitdiff
path: root/src/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tcp.c')
-rw-r--r--src/tcp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tcp.c b/src/tcp.c
index 539ad5e..06d687b 100644
--- a/src/tcp.c
+++ b/src/tcp.c
@@ -64,11 +64,11 @@ static luaL_reg tcp[] = {
64}; 64};
65 65
66/* socket option handlers */ 66/* socket option handlers */
67static t_opt opt[] = { 67static t_opt optset[] = {
68 {"keepalive", opt_keepalive}, 68 {"keepalive", opt_set_keepalive},
69 {"reuseaddr", opt_reuseaddr}, 69 {"reuseaddr", opt_set_reuseaddr},
70 {"tcp-nodelay", opt_tcp_nodelay}, 70 {"tcp-nodelay", opt_set_tcp_nodelay},
71 {"linger", opt_linger}, 71 {"linger", opt_set_linger},
72 {NULL, NULL} 72 {NULL, NULL}
73}; 73};
74 74
@@ -128,7 +128,7 @@ static int meth_setstats(lua_State *L) {
128static int meth_setoption(lua_State *L) 128static int meth_setoption(lua_State *L)
129{ 129{
130 p_tcp tcp = (p_tcp) auxiliar_checkgroup(L, "tcp{any}", 1); 130 p_tcp tcp = (p_tcp) auxiliar_checkgroup(L, "tcp{any}", 1);
131 return opt_meth_setoption(L, opt, &tcp->sock); 131 return opt_meth_setoption(L, optset, &tcp->sock);
132} 132}
133 133
134/*-------------------------------------------------------------------------*\ 134/*-------------------------------------------------------------------------*\