From 824b0007d661887230c3ffa141dc36ed1e8bab53 Mon Sep 17 00:00:00 2001 From: Aleksey Yeschenko Date: Sat, 13 Mar 2010 16:47:58 +0200 Subject: [PATCH] Removed s:flush() and NOFLUSH flag --- API.md | 7 ------- zmq.c | 11 ----------- 2 files changed, 18 deletions(-) diff --git a/API.md b/API.md index f009f9c..103c497 100644 --- a/API.md +++ b/API.md @@ -60,13 +60,6 @@ See [zmq_send(3)](http://api.zeromq.org/zmq_send.html). s:send(msg) s:send(msg, flags) -## flush - -Flushes unflushed messages to the socket. -See [zmq_flush(3)](http://api.zeromq.org/zmq_flush.html). - -s:flush() - ## recv Retrieves a message from the socket. diff --git a/zmq.c b/zmq.c index b6fd587..bd4ce90 100644 --- a/zmq.c +++ b/zmq.c @@ -188,15 +188,6 @@ static int Lzmq_send(lua_State *L) return 1; } -static int Lzmq_flush(lua_State *L) -{ - zmq_ptr *s = luaL_checkudata(L, 1, MT_ZMQ_SOCKET); - if (zmq_flush(s->ptr) != 0) { - return luaL_error(L, zmq_strerror(zmq_errno())); - } - return 0; -} - static int Lzmq_recv(lua_State *L) { zmq_ptr *s = luaL_checkudata(L, 1, MT_ZMQ_SOCKET); @@ -242,7 +233,6 @@ static const luaL_reg sockmethods[] = { {"bind", Lzmq_bind}, {"connect", Lzmq_connect}, {"send", Lzmq_send}, - {"flush", Lzmq_flush}, {"recv", Lzmq_recv}, {NULL, NULL} }; @@ -268,7 +258,6 @@ LUALIB_API int luaopen_zmq(lua_State *L) // flags. set_zmq_const(POLL); set_zmq_const(NOBLOCK); - set_zmq_const(NOFLUSH); // zmq.socket types. set_zmq_const(P2P);