diff options
author | Steven Barth <steven@midlink.org> | 2009-03-03 22:44:26 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2009-03-03 22:44:26 +0000 |
commit | e38c438771d10231e7ce1b74c027b4914acd6c78 (patch) | |
tree | 91ca365e48919d9af60e11ec7564f47538208289 /libs/nixio/src/sockopt.c | |
parent | a3079828b4e0c0fabd96dfca87b99a5b5d9529e5 (diff) |
nixio:
Use POSIX file functions
introduce dup()
introduce fork() wait() kill()
more signal interrupt wrappers
more POSIX / UNIX standard compliance
Diffstat (limited to 'libs/nixio/src/sockopt.c')
-rw-r--r-- | libs/nixio/src/sockopt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/nixio/src/sockopt.c b/libs/nixio/src/sockopt.c index 68a4c5590..b80e2e353 100644 --- a/libs/nixio/src/sockopt.c +++ b/libs/nixio/src/sockopt.c @@ -25,6 +25,7 @@ #include <fcntl.h> #include "nixio.h" + /** * setblocking() */ @@ -142,9 +143,9 @@ static int nixio__getsetsockopt(lua_State *L, int set) { return luaL_error(L, "not a TCP socket"); } if (!strcmp(option, "cork")) { - return nixio__gso_int(L, sock->fd, SOL_TCP, TCP_CORK, set); + return nixio__gso_int(L, sock->fd, IPPROTO_TCP, TCP_CORK, set); } else if (!strcmp(option, "nodelay")) { - return nixio__gso_int(L, sock->fd, SOL_TCP, TCP_NODELAY, set); + return nixio__gso_int(L, sock->fd, IPPROTO_TCP, TCP_NODELAY, set); } else { return luaL_argerror(L, 3, "supported values: cork, nodelay"); } |