1. 15 Feb, 2012 1 commit
  2. 14 Feb, 2012 1 commit
  3. 10 Feb, 2012 1 commit
  4. 08 Feb, 2012 1 commit
  5. 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
  6. 02 Feb, 2012 1 commit
  7. 16 Dec, 2011 1 commit
  8. 06 Nov, 2011 1 commit
  9. 05 Nov, 2011 1 commit
  10. 04 Nov, 2011 1 commit
  11. 01 Nov, 2011 2 commits
  12. 31 Oct, 2011 3 commits
  13. 15 Sep, 2011 1 commit
  14. 01 Sep, 2011 1 commit
  15. 28 Jul, 2011 2 commits
  16. 26 Jul, 2011 1 commit
  17. 25 Jul, 2011 1 commit
  18. 24 Jul, 2011 1 commit
  19. 21 Jul, 2011 1 commit
  20. 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
  21. 15 Jul, 2011 3 commits
  22. 23 Jun, 2011 2 commits
  23. 22 Jun, 2011 1 commit
  24. 20 Jun, 2011 3 commits
  25. 17 Jun, 2011 1 commit
  26. 31 May, 2011 1 commit
  27. 30 May, 2011 1 commit
  28. 25 May, 2011 1 commit
  29. 23 May, 2011 1 commit
  30. 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