Removed s:flush() and NOFLUSH flag

lua-zmq
Aleksey Yeschenko 16 years ago
parent 47751be355
commit 824b0007d6

@ -60,13 +60,6 @@ See [zmq_send(3)](http://api.zeromq.org/zmq_send.html).
s:send(msg) s:send(msg)
s:send(msg, flags) 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 ## recv
Retrieves a message from the socket. Retrieves a message from the socket.

11
zmq.c

@ -188,15 +188,6 @@ static int Lzmq_send(lua_State *L)
return 1; 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) static int Lzmq_recv(lua_State *L)
{ {
zmq_ptr *s = luaL_checkudata(L, 1, MT_ZMQ_SOCKET); zmq_ptr *s = luaL_checkudata(L, 1, MT_ZMQ_SOCKET);
@ -242,7 +233,6 @@ static const luaL_reg sockmethods[] = {
{"bind", Lzmq_bind}, {"bind", Lzmq_bind},
{"connect", Lzmq_connect}, {"connect", Lzmq_connect},
{"send", Lzmq_send}, {"send", Lzmq_send},
{"flush", Lzmq_flush},
{"recv", Lzmq_recv}, {"recv", Lzmq_recv},
{NULL, NULL} {NULL, NULL}
}; };
@ -268,7 +258,6 @@ LUALIB_API int luaopen_zmq(lua_State *L)
// flags. // flags.
set_zmq_const(POLL); set_zmq_const(POLL);
set_zmq_const(NOBLOCK); set_zmq_const(NOBLOCK);
set_zmq_const(NOFLUSH);
// zmq.socket types. // zmq.socket types.
set_zmq_const(P2P); set_zmq_const(P2P);

Loading…
Cancel
Save