Editing Zeromq package

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 40: Line 40:


== The functions ==
== The functions ==
iszmq
          Determine whether H is a zeromq socket object.


  zmq_bind
  zmq_bind
Line 52: Line 49:
  zmq_connect
  zmq_connect
           Connect a zeromq socket to a endpoint
           Connect a zeromq socket to a endpoint
zmq_curve_keypair
          Generate a random private/public keypair
zmq_curve_public
          Derive the public key from a private key
zmq_disconnect
          Disconnect a zeromq socket from an endpoint.


  zmq_errno
  zmq_errno
Line 67: Line 55:
  zmq_getsockopt
  zmq_getsockopt
           Get current value of a zeromq socket option.
           Get current value of a zeromq socket option.
zmq_has
          Check if the zmq library supports a given feature.


  zmq_poll
  zmq_poll
Line 83: Line 68:
  zmq_setsockopt
  zmq_setsockopt
           Set a zeromq socket option.
           Set a zeromq socket option.
zmq_socket
          Create a zeromq socket.


  zmq_strerror
  zmq_strerror
Line 95: Line 77:
  zmq_version
  zmq_version
           Get the zeromq library version numbers.
           Get the zeromq library version numbers.
zmq_z85_decode
          Decode a z85 encoded string to a binary key.
zmq_z85_encode
          Encode a binary key as Z85 printable text.


= Examples =
= Examples =
The zeromq package comes with a number of examples included in it. They can be opened in octave using:
  >> edit examples/zmq_example1.m


== basic request/reply pattern ==
== basic request/reply pattern ==
Line 169: Line 140:
</syntaxhighlight>}}
</syntaxhighlight>}}


== basic publish/subscribe pattern ==
== basic publish subscribe pattern ==


Example based on client/server example from [http://zguide.zeromq.org/page:all#Getting-the-Message-Out http://zguide.zeromq.org/page:all#Getting-the-Message-Out]
Example based on client/server example from [http://zguide.zeromq.org/page:all#Getting-the-Message-Out http://zguide.zeromq.org/page:all#Getting-the-Message-Out]
Line 240: Line 211:




[[Category:Octave Forge]][[Category:Packages]]
 
[[Category:Octave-Forge]]
Please note that all contributions to Octave may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Octave:Copyrights for details). Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Templates used on this page: