diff options
author | surenyi <surenyi82@163.com> | 2018-03-25 14:58:10 +0800 |
---|---|---|
committer | surenyi <surenyi82@163.com> | 2018-03-25 14:58:10 +0800 |
commit | 97bfe1e0437e5f31d47e1fa3bd2e8784a862482d (patch) | |
tree | f164143124f65aed9b9d25c355dd3740d3de8609 /src/tcp.c | |
parent | 652959890943c34d7180cae372339b91e62f0d7b (diff) | |
download | luasocket-97bfe1e0437e5f31d47e1fa3bd2e8784a862482d.tar.gz luasocket-97bfe1e0437e5f31d47e1fa3bd2e8784a862482d.tar.bz2 luasocket-97bfe1e0437e5f31d47e1fa3bd2e8784a862482d.zip |
add options:
get/set : recv-buffer-size
get/set : send-buffer-size
Signed-off-by: surenyi <surenyi82@163.com>
Diffstat (limited to 'src/tcp.c')
-rw-r--r-- | src/tcp.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -79,6 +79,8 @@ static t_opt optget[] = { | |||
79 | {"tcp-nodelay", opt_get_tcp_nodelay}, | 79 | {"tcp-nodelay", opt_get_tcp_nodelay}, |
80 | {"linger", opt_get_linger}, | 80 | {"linger", opt_get_linger}, |
81 | {"error", opt_get_error}, | 81 | {"error", opt_get_error}, |
82 | {"recv-buffer-size", opt_get_recv_buf_size}, | ||
83 | {"send-buffer-size", opt_get_send_buf_size}, | ||
82 | {NULL, NULL} | 84 | {NULL, NULL} |
83 | }; | 85 | }; |
84 | 86 | ||
@@ -89,6 +91,8 @@ static t_opt optset[] = { | |||
89 | {"tcp-nodelay", opt_set_tcp_nodelay}, | 91 | {"tcp-nodelay", opt_set_tcp_nodelay}, |
90 | {"ipv6-v6only", opt_set_ip6_v6only}, | 92 | {"ipv6-v6only", opt_set_ip6_v6only}, |
91 | {"linger", opt_set_linger}, | 93 | {"linger", opt_set_linger}, |
94 | {"recv-buffer-size", opt_set_recv_buf_size}, | ||
95 | {"send-buffer-size", opt_set_send_buf_size}, | ||
92 | {NULL, NULL} | 96 | {NULL, NULL} |
93 | }; | 97 | }; |
94 | 98 | ||