diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2009-05-27 09:31:38 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2009-05-27 09:31:38 +0000 |
| commit | bce60be30fe8e9c1b0eb33128c23c93d7bca5303 (patch) | |
| tree | 3927343c777fcb7764a0f2f89754a0ceab141c21 /src/options.h | |
| parent | d1a72435d5bd3528f3c334cd4d1da16dcead47bf (diff) | |
| download | luasocket-bce60be30fe8e9c1b0eb33128c23c93d7bca5303.tar.gz luasocket-bce60be30fe8e9c1b0eb33128c23c93d7bca5303.tar.bz2 luasocket-bce60be30fe8e9c1b0eb33128c23c93d7bca5303.zip | |
Decent makefiles!
Diffstat (limited to 'src/options.h')
| -rw-r--r-- | src/options.h | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/src/options.h b/src/options.h index 900761e..aa43cab 100644 --- a/src/options.h +++ b/src/options.h | |||
| @@ -6,8 +6,6 @@ | |||
| 6 | * | 6 | * |
| 7 | * This module provides a common interface to socket options, used mainly by | 7 | * This module provides a common interface to socket options, used mainly by |
| 8 | * modules UDP and TCP. | 8 | * modules UDP and TCP. |
| 9 | * | ||
| 10 | * RCS ID: $Id$ | ||
| 11 | \*=========================================================================*/ | 9 | \*=========================================================================*/ |
| 12 | 10 | ||
| 13 | #include "lua.h" | 11 | #include "lua.h" |
| @@ -20,20 +18,28 @@ typedef struct t_opt { | |||
| 20 | } t_opt; | 18 | } t_opt; |
| 21 | typedef t_opt *p_opt; | 19 | typedef t_opt *p_opt; |
| 22 | 20 | ||
| 23 | /* supported options */ | 21 | /* supported options for setoption */ |
| 24 | int opt_dontroute(lua_State *L, p_socket ps); | 22 | int opt_set_dontroute(lua_State *L, p_socket ps); |
| 25 | int opt_broadcast(lua_State *L, p_socket ps); | 23 | int opt_set_broadcast(lua_State *L, p_socket ps); |
| 26 | int opt_reuseaddr(lua_State *L, p_socket ps); | 24 | int opt_set_reuseaddr(lua_State *L, p_socket ps); |
| 27 | int opt_tcp_nodelay(lua_State *L, p_socket ps); | 25 | int opt_set_tcp_nodelay(lua_State *L, p_socket ps); |
| 28 | int opt_keepalive(lua_State *L, p_socket ps); | 26 | int opt_set_keepalive(lua_State *L, p_socket ps); |
| 29 | int opt_linger(lua_State *L, p_socket ps); | 27 | int opt_set_linger(lua_State *L, p_socket ps); |
| 30 | int opt_reuseaddr(lua_State *L, p_socket ps); | 28 | int opt_set_reuseaddr(lua_State *L, p_socket ps); |
| 31 | int opt_ip_multicast_ttl(lua_State *L, p_socket ps); | 29 | int opt_set_reuseport(lua_State *L, p_socket ps); |
| 32 | int opt_ip_multicast_loop(lua_State *L, p_socket ps); | 30 | int opt_set_ip_multicast_if(lua_State *L, p_socket ps); |
| 33 | int opt_ip_add_membership(lua_State *L, p_socket ps); | 31 | int opt_set_ip_multicast_ttl(lua_State *L, p_socket ps); |
| 34 | int opt_ip_drop_membersip(lua_State *L, p_socket ps); | 32 | int opt_set_ip_multicast_loop(lua_State *L, p_socket ps); |
| 35 | 33 | int opt_set_ip_add_membership(lua_State *L, p_socket ps); | |
| 34 | int opt_set_ip_drop_membersip(lua_State *L, p_socket ps); | ||
| 36 | /* invokes the appropriate option handler */ | 35 | /* invokes the appropriate option handler */ |
| 37 | int opt_meth_setoption(lua_State *L, p_opt opt, p_socket ps); | 36 | int opt_meth_setoption(lua_State *L, p_opt opt, p_socket ps); |
| 38 | 37 | ||
| 38 | /* supported options for getoption */ | ||
| 39 | int opt_get_ip_multicast_loop(lua_State *L, p_socket ps); | ||
| 40 | int opt_get_ip_multicast_if(lua_State *L, p_socket ps); | ||
| 41 | /* invokes the appropriate option handler */ | ||
| 42 | int opt_meth_getoption(lua_State *L, p_opt opt, p_socket ps); | ||
| 43 | |||
| 44 | |||
| 39 | #endif | 45 | #endif |
