[zeromq-dev] How to setup timeout in for stages in multi threaded client server app

Meir Yanovich meiryanovich at gmail.com
Fri Feb 1 18:11:12 CET 2013


i do , but im using the java binding , and its luck of documentation.
i mean the java part . the commands are not the same as the C api .
this is my main problem .
from looking on the web i see im not the only one that has this problem
with the JAVA api

On Fri, Feb 1, 2013 at 6:51 PM, Pieter Hintjens <ph at imatix.com> wrote:

> Meir,
>
> Before you ask questions about using 0MQ, you should read the Guide
> fully and digest at least the first chapters.
>
> -Pieter
>
> On Fri, Feb 1, 2013 at 3:16 PM, Meir Yanovich <meiryanovich at gmail.com>
> wrote:
> > can some one please tell me why setting this :
> >   m_context = ZMQ.context(1);
> >   m_socket = m_context.socket(ZMQ.REQ);
> >   m_socket.setReceiveTimeOut(2000);
> >   m_socket.setSendTimeOut(2000);
> >
> > just dosnt work ?
> > also does the input is in seconds or milliseconds ? there is no info
> about
> > java
> >
> >
> >
> > On Fri, Feb 1, 2013 at 3:52 PM, Meir Yanovich <meiryanovich at gmail.com>
> > wrote:
> >>
> >> ok reading the ZMQ.java where all the documentation is ....
> >>
> >>
> >> On Fri, Feb 1, 2013 at 3:31 PM, Meir Yanovich <meiryanovich at gmail.com>
> >> wrote:
> >>>
> >>> thanks for the link , but i having trouble to find how to do this in
> the
> >>> java wrapper .
> >>> i dont see any "zmq_setsockopt" in  java .
> >>> what i use in java to init  is simple :
> >>>  m_context = ZMQ.context(1);
> >>>  m_socket = m_context.socket(ZMQ.REQ);
> >>>
> >>>
> >>> On Fri, Feb 1, 2013 at 12:42 PM, Pieter Hintjens <ph at imatix.com>
> wrote:
> >>>>
> >>>> Here's a simple example:
> >>>> https://github.com/zeromq/libzmq/blob/master/tests/test_timeo.cpp
> >>>>
> >>>> On Fri, Feb 1, 2013 at 11:10 AM, Meir Yanovich <
> meiryanovich at gmail.com>
> >>>> wrote:
> >>>> > can you please point me to some example .
> >>>> > thanks
> >>>> >
> >>>> >
> >>>> > On Fri, Feb 1, 2013 at 11:10 AM, Pieter Hintjens <ph at imatix.com>
> >>>> > wrote:
> >>>> >>
> >>>> >> You can set send/receive timeouts using the ZMQ_SNDTIMEO and
> >>>> >> ZMQ_RCVTIMEO socket options.
> >>>> >>
> >>>> >> -Pieter
> >>>> >>
> >>>> >> On Fri, Feb 1, 2013 at 9:18 AM, Meir Yanovich
> >>>> >> <meiryanovich at gmail.com>
> >>>> >> wrote:
> >>>> >> > hello all
> >>>> >> > i want to set few timeouts levels in ZeroMQ Java app .
> >>>> >> > 1. request timeout .
> >>>> >> > 2.response timeout
> >>>> >> > 3. round trip time out .
> >>>> >> > can you please point me on the right way to do this ?
> >>>> >> > Thanks
> >>>> >> >
> >>>> >> > _______________________________________________
> >>>> >> > zeromq-dev mailing list
> >>>> >> > zeromq-dev at lists.zeromq.org
> >>>> >> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >>>> >> >
> >>>> >> _______________________________________________
> >>>> >> zeromq-dev mailing list
> >>>> >> zeromq-dev at lists.zeromq.org
> >>>> >> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >>>> >
> >>>> >
> >>>> >
> >>>> > _______________________________________________
> >>>> > zeromq-dev mailing list
> >>>> > zeromq-dev at lists.zeromq.org
> >>>> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >>>> >
> >>>> _______________________________________________
> >>>> zeromq-dev mailing list
> >>>> zeromq-dev at lists.zeromq.org
> >>>> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >>>
> >>>
> >>
> >
> >
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev at lists.zeromq.org
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130201/004c6018/attachment.htm>


More information about the zeromq-dev mailing list