1. 22 May, 2012 5 commits
  2. 21 May, 2012 6 commits
  3. 20 May, 2012 3 commits
  4. 13 May, 2012 2 commits
    • Pieter Hintjens's avatar
      Merge pull request #341 from kennytm/master · 5ef63318
      Pieter Hintjens authored
      Allow the ZMQ_MONITOR code compilable on gcc 4.7 on Linux.
      5ef63318
    • KennyTM~'s avatar
      Allow the ZMQ_MONITOR code compilable on gcc 4.7 on Linux. · c995de65
      KennyTM~ authored
      The current ZMQ_MONITOR code does not compile in gcc 4.7, as -pedantic
      and -Werror are enabled, and ISO C++ doesn't allow casting between
      normal pointers (void*) and function pointers, as pedantically their
      size could be different. This caused the library not compilable. This
      commit workaround the problem by introducing one more indirection, i.e.
      instead of calling
      
          (void *)listener
      
      which is an error, we have to use
      
          *(void **)&listener
      
      which is an undefined behavior :) but works on most platforms
      
      Also, `optval_ = monitor` will not set the parameter in getsockopt(),
      and the extra casting caused the LHS to be an rvalue which again makes
      the code not compilable. The proper way is to pass a pointer of function
      pointer and assign with indirection, i.e. `*optval_ = monitor`.
      
      Also, fixed an asciidoc error in zmq_getsockopt.txt because the `~~~~`
      is too long.
      c995de65
  5. 11 May, 2012 4 commits
  6. 08 May, 2012 5 commits
  7. 07 May, 2012 1 commit
  8. 06 May, 2012 1 commit
  9. 05 May, 2012 2 commits
    • Jos Decoster's avatar
      Fix compile error with Visual C++ 2008 · 37e4a38e
      Jos Decoster authored
      File decoder.cpp does not compile with Visual C++ 2008:
      
      1>c:\tmp\libzmq\src\decoder.cpp(117) : warning C4003: not enough actual parameters for macro 'max'
      1>c:\tmp\libzmq\src\decoder.cpp(117) : error C2589: '(' : illegal token on right side of '::'
      1>c:\tmp\libzmq\src\decoder.cpp(117) : error C2059: syntax error : '::'
      1>c:\tmp\libzmq\src\decoder.cpp(117) : error C2143: syntax error : missing ';' before '{'
      
      This error is caused by the precense of a macro 'max' when including
      'windows.h'. To solve this problem, the preprocessor macro /DNOMINMAX must
      be specified.
      37e4a38e
    • Jos Decoster's avatar
      Fix for issue 355. Added missing source files dealer.cpp, device,cpp and… · 68c1be8b
      Jos Decoster authored
      Fix for issue 355. Added missing source files dealer.cpp, device,cpp and router.cpp. Removed source files no longer present: xrep.cpp and xreq.cpp
      68c1be8b
  10. 04 May, 2012 2 commits
  11. 03 May, 2012 2 commits
  12. 30 Apr, 2012 4 commits
  13. 29 Apr, 2012 3 commits
    • Martin Hurton's avatar
      Do not crash when multiple peers connect to PAIR socket · d8470949
      Martin Hurton authored
      When more then one peer connected to a ZMQ_PAIR socket,
      an application aborted due to assertion failure.
      This patch changes the ZMQ_PAIR socket behaviour so that
      it rejects any further connection requests.
      d8470949
    • Martin Hurton's avatar
      Fix decoder to properly handle large messages · 5227f676
      Martin Hurton authored
      The decoder did not properly decode large messages
      on systems where sizeof (size_t) < sizeof (uint64_t).
      5227f676
    • Martin Hurton's avatar
      Fix issue #264 · 776563fc
      Martin Hurton authored
      Before this patch, the stream engine terminated itself
      whenever it had detected an IO error. If this happened
      when sending a message, the engine lost all
      in-flight messages, messages waiting to be decoded,
      and the last decoded message that had not been accepted,
      if there was one.
      
      The new behaviour is to terminate the engine only after
      the input error has been detected and the last decoded
      776563fc