aboutsummaryrefslogtreecommitdiff
path: root/src/tcp.c
diff options
context:
space:
mode:
authorDiego Nehab <diego.nehab@gmail.com>2019-02-24 17:57:23 -0300
committerGitHub <noreply@github.com>2019-02-24 17:57:23 -0300
commita9c75cb099e8db00d17a2314df2dca138e444314 (patch)
treedb4d9603d5f8e2c6987a6da0bb48235e1e9ab5f1 /src/tcp.c
parent699c36c0193c4c9fb4ae8d90c032280f6bacdaf3 (diff)
parent97bfe1e0437e5f31d47e1fa3bd2e8784a862482d (diff)
downloadluasocket-a9c75cb099e8db00d17a2314df2dca138e444314.tar.gz
luasocket-a9c75cb099e8db00d17a2314df2dca138e444314.tar.bz2
luasocket-a9c75cb099e8db00d17a2314df2dca138e444314.zip
Merge pull request #244 from leyyer/options
add options:
Diffstat (limited to 'src/tcp.c')
-rw-r--r--src/tcp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tcp.c b/src/tcp.c
index 79a680b..c7384b4 100644
--- a/src/tcp.c
+++ b/src/tcp.c
@@ -88,6 +88,8 @@ static t_opt optget[] = {
88#endif 88#endif
89 {"linger", opt_get_linger}, 89 {"linger", opt_get_linger},
90 {"error", opt_get_error}, 90 {"error", opt_get_error},
91 {"recv-buffer-size", opt_get_recv_buf_size},
92 {"send-buffer-size", opt_get_send_buf_size},
91 {NULL, NULL} 93 {NULL, NULL}
92}; 94};
93 95
@@ -107,6 +109,8 @@ static t_opt optset[] = {
107#endif 109#endif
108 {"ipv6-v6only", opt_set_ip6_v6only}, 110 {"ipv6-v6only", opt_set_ip6_v6only},
109 {"linger", opt_set_linger}, 111 {"linger", opt_set_linger},
112 {"recv-buffer-size", opt_set_recv_buf_size},
113 {"send-buffer-size", opt_set_send_buf_size},
110 {NULL, NULL} 114 {NULL, NULL}
111}; 115};
112 116