1. 25 Sep, 2012 3 commits
  2. 21 Sep, 2012 4 commits
  3. 20 Sep, 2012 2 commits
  4. 18 Sep, 2012 2 commits
  5. 07 Sep, 2012 3 commits
  6. 06 Sep, 2012 2 commits
    • Arthur O'Dwyer's avatar
      Add "#undef NDEBUG" to all tests. · cf20932d
      Arthur O'Dwyer authored
      This change makes sure that even if the tests are built in a
      "release" configuration (with optimizations and NDEBUG turned on),
      the assertions won't get compiled out of the tests themselves.
      
      The C standard guarantees that the most recent inclusion of
      <assert.h> is the one that counts, so it's important that the
      "#undef NDEBUG/#include <assert.h>" come as the last thing in
      the block of header files.
      
      "testutil.hpp" includes <assert.h>, so I've left <assert.h> out
      of any test that #includes "testutil.hpp", just for the sake of
      brevity.
      cf20932d
    • Pieter Hintjens's avatar
      Code cleanups · aaac4b84
      Pieter Hintjens authored
      aaac4b84
  7. 05 Sep, 2012 4 commits
  8. 04 Sep, 2012 2 commits
  9. 03 Sep, 2012 3 commits
  10. 02 Sep, 2012 4 commits
    • Ian Barber's avatar
      Merge pull request #418 from hurtonm/versioned_ztp · 9143ac51
      Ian Barber authored
      Introduce versioning into ZTP
      9143ac51
    • Martin Hurton's avatar
      Make ZMQ interoperate with ZMQ 2.x SUB sockets · d9307c9f
      Martin Hurton authored
      Since ZMQ 2.x does not support subscription forwarding, it's not
      possible to use ZMQ 2.x SUB socket to receive messages from a PUB
      socket.
      
      This patch adds some compatibility layer so that ZMQ 2.x SUB socket
      receives messages from PUB socket.
      d9307c9f
    • Martin Hurton's avatar
      Decouple encoder_t and decoder_t from session_base_t · dfc0222e
      Martin Hurton authored
      This patch introduces i_msg_sink and i_msg_source interfaces. This
      allows us to make message encoder and decoder more general.
      dfc0222e
    • Martin Hurton's avatar
      Extend ZTP/1.0 protocol · 1bca4f6f
      Martin Hurton authored
      The new protocol adds support for protocol version and  exchanges the
      socket type, so that the library can reject a connection when the
      sockets do not match.
      
      The protocol was designed so that it's possible to detect and fully
      support ZTP/1.0 peers.
      
      When a new connection is set up, peers exchange greeting messages. The
      greeting message encodes both the protocol verion and the socket type.
      The format of the greeting message is as follows:
      
          greeting    = tag1, adaptation, tag2, version, length, socket_type
          tag1        = BYTE / 0xff
          adaptation  = 8 BYTES
          tag2        = BYTE / 0x7f
          version     = BYTE / 1
          length      = BYTE / 1
          socket_type = BYTE
      
      The protocol does not define the value of adaptation field.
      
      When interoperability with ZTP/1.0 peers is required, the adaptaion
      encodes, in network byte order, the length of identity message increased
      by 1. When adaptaion consists of eight zeros, the current
      implementatatio of 0MQ 2.x closes the connection.
      
      This patch supports both ZTP/1.0 and new protocol.
      1bca4f6f
  11. 28 Aug, 2012 2 commits
  12. 27 Aug, 2012 6 commits
  13. 26 Aug, 2012 3 commits
    • Ian Barber's avatar
      Update ROUTER_BEHAVIOR documentation · fd67cd81
      Ian Barber authored
      Include a note about potential interactions with reactors, and update
      reference to old FAIL_UNROUTABLE name.
      fd67cd81
    • Ian Barber's avatar
      Use full endpoint string in monitor response · 95c018c0
      Ian Barber authored
      The endpoint was excluding the tcp://, causing tests to fail
      95c018c0
    • Ian Barber's avatar
      Remove early return on terminated state · 94835581
      Ian Barber authored
      Code as stands breaks shutdown process. It was a bugfix by Arthur to a
      bad line which was testing for an impossible state - but afaics we do
      actually want to flush in those states. It is possible I am wrong on
      that though - if there are any shutdown issues introduced aroudn this
      commit I would suggest further investigation around this flushing
      behavior.
      94835581