1. 12 Jun, 2012 2 commits
  2. 04 Jun, 2012 1 commit
    • Ian Barber's avatar
      On the advice of Martin Hurton, removed the new command type and just terminated… · c13f1d52
      Ian Barber authored
      On the advice of Martin Hurton, removed the new command type and just terminated the pipe in a reconnect situation, and notified the socket of the same. This handles the blocking properly, but at the cost of potentially losing in flight messages. However, this is a reasonable trade off given how much simpler it makes the patch.
      c13f1d52
  3. 03 Jun, 2012 1 commit
    • Ian Barber's avatar
      Fix a number of whitespace issues in various parts of the code, add validation… · 6f6466f0
      Ian Barber authored
      Fix a number of whitespace issues in various parts of the code, add validation to most calls on the test and take a first stab at implementing the reconnection pipe blocking.
      
      It didn't seem straightforward to use any of the existing process calls, so I have added a new command to command_t and friends called detach. This instructs the socket_base to remove the pipe from it's pipe list. The session base stores a copy of the outpipe, and will resend the bind command on reconnection. This should allow balancing again.
      6f6466f0
  4. 04 May, 2012 1 commit
  5. 28 Apr, 2012 1 commit
  6. 20 Apr, 2012 1 commit
  7. 18 Apr, 2012 1 commit
  8. 17 Apr, 2012 1 commit
  9. 20 Mar, 2012 1 commit
    • Pieter Hintjens's avatar
      Fixed issues #337, #341, and #340 · 6e71a54b
      Pieter Hintjens authored
      * Implemented new ctx API (_new, _destroy, _get, _set)
      * Removed 'typesafe' macros from zmq.h
      * Added support for MAX_SOCKETS (was tied into change for #337)
      * Created new man pages
      6e71a54b
  10. 19 Mar, 2012 1 commit
  11. 03 Feb, 2012 2 commits
    • skaller's avatar
      Set and arrange propagation of thread safe sockets flag. · 520ad3c2
      skaller authored
      We use a distinct context initialisation function to specify
      all sockets derived therefrom will be thread safe.
      
      However the inheritance is done exclusively in the C interface.
      This is not really correct, but it is chosen to minimise
      interference with the existing C++ code, including any
      construct or other calls within the C++ code base.
      Semantically the C++ code should be unchanged,
      physically some data structures and extra methods are
      provided by they're only used from the C binding.
      520ad3c2
    • skaller's avatar
      Thread Safe Sockets. · 988efbc7
      skaller authored
      1. Reorganise C API socket functions to eliminate bad practice
      of public functions calling other public functions. This should
      be done for msg's too but hasn't been in this patch.
      
      2. Reorganise code in C API socket functions so that the
      socket is cast on one line, the C++ function called on
      the next with the result retained, then the result is returned.
      
      This makes the code much simpler to read and also allows
      pre- and post- call hooks to be inserted easily.
      
      3. Insert pre- and post- call hooks which set and release
      a mutex iff the thread_safe flag is on.
      
      4. Add the thread_safe_flag to base_socket_t initialised to
      false to preserve existing semantics. Add an accessor for
      the flag, add a mutex, and add lock and unlock functions.
      
      Note: as yet no code to actually set the flag.
      988efbc7
  12. 02 Feb, 2012 1 commit
  13. 09 Nov, 2011 1 commit
  14. 01 Nov, 2011 2 commits
  15. 31 Oct, 2011 1 commit
  16. 17 Jul, 2011 1 commit
    • Martin Sustrik's avatar
      GENERIC socket type and COMMAND flag added · bf78e230
      Martin Sustrik authored
      GENERIC allows to use 0MQ as a dumb networking framework.
      It provides user with connect/disconnect notifications.
      Also, each inbound message is labeled by ID of the connection
      it originated from. Outbound messages should be labeled by
      the ID of the connection to send them to.
      
      To distinguish connect/disconnect notifications from common
      messages, COMMAND flag was introduced.
      Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
      bf78e230
  17. 15 Jul, 2011 1 commit
  18. 20 Jun, 2011 1 commit
  19. 17 Jun, 2011 1 commit
  20. 30 May, 2011 1 commit
  21. 23 May, 2011 2 commits
  22. 22 May, 2011 1 commit
    • Martin Sustrik's avatar
      Introduces bi-directional pipes · acf0b0e5
      Martin Sustrik authored
      So far, there was a pair of unidirectional pipes between a socket
      and a session (or an inproc peer). This resulted in complex
      problems with half-closed states and tracking which inpipe
      corresponds to which outpipe.
      
      This patch doesn't add any functionality in itself, but is
      essential for further work on features like subscription
      forwarding.
      Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
      acf0b0e5
  23. 21 Apr, 2011 1 commit
  24. 09 Apr, 2011 1 commit
  25. 02 Mar, 2011 1 commit
  26. 25 Feb, 2011 1 commit
  27. 09 Feb, 2011 2 commits
  28. 13 Jan, 2011 1 commit
  29. 13 Dec, 2010 1 commit
  30. 05 Nov, 2010 2 commits
  31. 30 Oct, 2010 1 commit
  32. 16 Oct, 2010 1 commit
    • Martin Sustrik's avatar
      ZMQ_LINGER socket option added. · 0a03e86e
      Martin Sustrik authored
          1. ZMQ_LINGER option can be set/get
          2. options are part of own_t base class rather than being declared
             separately by individual objects
          3. Linger option is propagated with "term" command so that the
             newest value of it is used rather than the stored old one.
          4. Session sets the linger timer if needed and terminates
             as soon as it expires.
          5. Corresponding documentation updated.
      Signed-off-by: 's avatarMartin Sustrik <sustrik@250bpm.com>
      0a03e86e
  33. 26 Sep, 2010 1 commit
  34. 21 Sep, 2010 1 commit