1. 21 Jan, 2014 1 commit
  2. 20 Jan, 2014 1 commit
  3. 19 Jan, 2014 3 commits
  4. 18 Jan, 2014 1 commit
  5. 17 Jan, 2014 1 commit
    • Tim M's avatar
      Both STREAM and ROUTER sockets suffer from a naming problem on outbound… · 5d4860ea
      Tim M authored
      Both STREAM and ROUTER sockets suffer from a naming problem on outbound connections. While these connections can be created, they can't be immediately used. Traffic must be received before it can be sent. This prevents practical, minimal usage of STREAM or ROUTER as a true N fan in/out socket.
      
      This change simply provides the user with a socket option that sets a user defined name of the next outbound connection:
      
      zmq_setsockopt(routerSock,ZMQ_NEXT_IDENTITY,"myname",6);
      if(0 > zmq_connect(routerSock,"tcp://127.0.0.1:1234")) return 1;
      ret = zmq_send(routerSock,"myname",6,ZMQ_SNDMORE);
      zmq_send(routerSock,b.mem,b.used,0);
      
      In this example, the socket is immediately given the name "myname", and is capable of immediately sending traffic.
      
      This approach is more effective in three ways:
      1) It prevents all sorts of malicious peer naming attacks that can cause undefined behavior in existing ROUTER connections. (Two connections are made that both transmit the same name to the ROUTER, the ROUTER behavior is undefined)
      2) It allows immediate control of connections made to external parties for STREAM sockets. Something that is not possible right now. Before an outbound connection had no name for STREAM or ROUTER sockets because outbound connections cannot be sent to without first receiving traffic.
      3) It is simpler and more general than expecting two ROUTER sockets to handshake on assigned connection names. Plus it allows inline sending to new connections on ROUTER.
      5d4860ea
  6. 02 Jan, 2014 1 commit
  7. 28 Oct, 2013 1 commit
  8. 31 Aug, 2013 1 commit
    • Shawn J. Goff's avatar
      Change name of icanhasall to subscribe_to_all · 6a18f595
      Shawn J. Goff authored
      icanhasall is cute (for now), but the effect of the variable is clear
      only after tracking down its origin reading the commit. This change is
      intended to make it easier for people to have some intuition about its
      effect from its name.
      6a18f595
  9. 29 Jun, 2013 2 commits
  10. 28 Jun, 2013 3 commits
  11. 27 Jun, 2013 1 commit
    • Pieter Hintjens's avatar
      Added ZMQ_STREAM socket type · ad779379
      Pieter Hintjens authored
      - designed for TCP clients and servers
      - added HTTP client / server example in tests/test_stream.cpp
      - same as ZMQ_ROUTER + ZMQ_ROUTER_RAW + ZMQ_ROUTER_MANDATORY
      - includes b893ce set ZMQ_IDENTITY on outgoing connect
      - deprecates ZMQ_ROUTER_RAW
      ad779379
  12. 23 Jun, 2013 1 commit
    • Gavin's avatar
      Store identity for raw socket · b893ce25
      Gavin authored
      Identity stored during connect procedure. Can be read using
      zmq_getsockopt and used as the identity frame when sending messages.
      This allows the implementation of a raw socket client.
      b893ce25
  13. 10 Jun, 2013 1 commit
  14. 06 Jun, 2013 1 commit
  15. 05 Jun, 2013 2 commits
  16. 24 May, 2013 1 commit
  17. 23 May, 2013 2 commits
  18. 21 May, 2013 4 commits
  19. 12 Mar, 2013 2 commits
    • Pieter Hintjens's avatar
      Removed pointless comment · 0e77d65f
      Pieter Hintjens authored
      0e77d65f
    • Pieter Hintjens's avatar
      Removed corporate advertisements from source file headers · f0f16505
      Pieter Hintjens authored
      Copyrights had become ads for Sustrik's corporate sponsors, going against the original
      agreement to share copyrights with the community (that agreement was: one line stating
      iMatix copyright + one reference to AUTHORS file). The proliferation of corporate ads
      is also unfair to the many individual authors. I've removed ALL corporate title from
      the source files so the copyright statements can now be centralized in AUTHORS and
      source files can be properly updated on an annual basis.
      f0f16505
  20. 19 Feb, 2013 1 commit
  21. 11 Dec, 2012 1 commit
  22. 09 Dec, 2012 1 commit
  23. 08 Dec, 2012 1 commit
  24. 09 Nov, 2012 2 commits
  25. 06 Nov, 2012 1 commit
  26. 30 Oct, 2012 1 commit
  27. 29 Oct, 2012 1 commit
    • Hardeep's avatar
      Added support for non-zmq tcp client connections to router socket. · 83387b40
      Hardeep authored
          - Created a new option ZMQ_ROUTER_RAW_SOCK
          - Added new raw_encoder and raw_decoder to receive and send messages in raw form to remote client
          - Added test case file tests/test_raw_sock.cpp
      
          o To create a raw router sock set the ZMQ_ROUTER_RAW_SOCK option
          o ZMQ_MSGMORE flag is ignored for non-id messages
          o To terminate a remote connection send id message followed by zero length data message
      83387b40
  28. 24 Oct, 2012 1 commit