formatting

lua-zmq
Aleksey Yeschenko 16 years ago
parent 2503566371
commit 0c3c152f52

@ -1,9 +1,8 @@
# constants ## constants
ZMQ_CONSTANT_NAME in the C API corresponds to zmq.CONSTANT_NAME in Lua. ZMQ_CONSTANT_NAME in the C API corresponds to zmq.CONSTANT_NAME in Lua.
## zmq.init
# zmq.init
Initialises ØMQ context. Initialises ØMQ context.
See [zmq_init(3)](http://api.zeromq.org/zmq_init.3.html). See [zmq_init(3)](http://api.zeromq.org/zmq_init.3.html).
@ -11,56 +10,49 @@ See [zmq_init(3)](http://api.zeromq.org/zmq_init.3.html).
zmq.init(app_threads, io_threads) zmq.init(app_threads, io_threads)
zmq.init(app_threads, io_threads, flags) zmq.init(app_threads, io_threads, flags)
## zmq.term
# zmq.term
Terminates ØMQ context. Terminates ØMQ context.
See [zmq_term(3)](http://api.zeromq.org/zmq_term.3.html). See [zmq_term(3)](http://api.zeromq.org/zmq_term.3.html).
zmq.term(context) zmq.term(context)
## zmq.socket
# zmq.socket
Creates ØMQ socket. Creates ØMQ socket.
See [zmq_socket(3)](http://api.zeromq.org/zmq_socket.3.html). See [zmq_socket(3)](http://api.zeromq.org/zmq_socket.3.html).
zmq.socket(context, type) zmq.socket(context, type)
## zmq.close
# zmq.close
Destroys ØMQ socket. Destroys ØMQ socket.
See [zmq_close(3)](http://api.zeromq.org/zmq_close.3.html). See [zmq_close(3)](http://api.zeromq.org/zmq_close.3.html).
zmq.close(socket) zmq.close(socket)
## zmq.setsockopt
# zmq.setsockopt
Sets a specified option on a ØMQ socket. Sets a specified option on a ØMQ socket.
See [zmq_setsockopt(3)](http://api.zeromq.org/zmq_setsockopt.3.html). See [zmq_setsockopt(3)](http://api.zeromq.org/zmq_setsockopt.3.html).
zmq.setsockopt(socket, option, optval) zmq.setsockopt(socket, option, optval)
## zmq.bind
# zmq.bind
Binds the socket to the specified address. Binds the socket to the specified address.
See [zmq_bind(3)](http://api.zeromq.org/zmq_bind.3.html). See [zmq_bind(3)](http://api.zeromq.org/zmq_bind.3.html).
zmq.bind(socket, addr) zmq.bind(socket, addr)
## zmq.connect
# zmq.connect
Connect the socket to the specified address. Connect the socket to the specified address.
See [zmq_connect(3)](http://api.zeromq.org/zmq_connect.3.html). See [zmq_connect(3)](http://api.zeromq.org/zmq_connect.3.html).
zmq.connect(socket, addr) zmq.connect(socket, addr)
## zmq.send
# zmq.send
Sends a message. Sends a message.
See [zmq_send(3)](http://api.zeromq.org/zmq_send.3.html). See [zmq_send(3)](http://api.zeromq.org/zmq_send.3.html).
@ -68,16 +60,14 @@ See [zmq_send(3)](http://api.zeromq.org/zmq_send.3.html).
zmq.send(socket, msg) zmq.send(socket, msg)
zmq.send(socket, msg, flags) zmq.send(socket, msg, flags)
## zmq.flush
# zmq.flush
Flushes unflushed messages to the socket. Flushes unflushed messages to the socket.
See [zmq_flush(3)](http://api.zeromq.org/zmq_flush.3.html). See [zmq_flush(3)](http://api.zeromq.org/zmq_flush.3.html).
zmq.flush(socket) zmq.flush(socket)
## zmq.recv
# zmq.recv
Retrieves a message from the socket. Retrieves a message from the socket.
See [zmq_recv(3)](http://api.zeromq.org/zmq_recv.3.html). See [zmq_recv(3)](http://api.zeromq.org/zmq_recv.3.html).

Loading…
Cancel
Save