Updated links to zeromq documentation

lua-zmq
Aleksey Yeschenko 16 years ago
parent 35d6c237e3
commit 47751be355

@ -5,7 +5,7 @@ ZMQ_CONSTANT_NAME in the C API turns into zmq.CONSTANT_NAME in Lua.
## init ## 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.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)
@ -13,49 +13,49 @@ zmq.init(app_threads, io_threads, flags)
## term ## 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.html).
ctx:term() ctx:term()
## socket ## 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.html).
ctx:socket(type) ctx:socket(type)
## close ## 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.html).
s:close() s:close()
## setsockopt ## 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.html).
s:setsockopt(option, optval) s:setsockopt(option, optval)
## bind ## 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.html).
s:bind(addr) s:bind(addr)
## connect ## 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.html).
s:connect(addr) s:connect(addr)
## send ## 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.html).
s:send(msg) s:send(msg)
s:send(msg, flags) s:send(msg, flags)
@ -63,14 +63,14 @@ s:send(msg, flags)
## flush ## 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.html).
s:flush() s:flush()
## recv ## 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.html).
s:recv() s:recv()
s:recv(flags) s:recv(flags)

Loading…
Cancel
Save