Setting the TCPIP connection timeout?

Hi,

Does anyone know how to set the TCPIP connection establishment timeout
in the QNX RTP? To phrase it slightly differently: how do you set the
time that the TCPIP process will wait for a response to its initial
connection request? Can this be done at all?

Thanks,

–Dan

Dan Arpin <darpin@ge-harris.com> wrote:
: Hi,

: Does anyone know how to set the TCPIP connection establishment timeout
: in the QNX RTP? To phrase it slightly differently: how do you set the
: time that the TCPIP process will wait for a response to its initial
: connection request? Can this be done at all?

: Thanks,

It’s 2 minutes and can’t be changed. You can however ask to
be broken out after X seconds. The traditional way is with
the alarm() func. The more general, rtp, way is for
timer_timeout() to time out the send and reply blocked states
(_NTO_TIMEOUT_SEND | _NTO_TIMEOUT_REPLY).

-seanb

Thanks for the advice ! I used to have the same problem with connect() It
seems to be very dangerouse function. But with this alarm() trick everithing
is O.K.
Thanks again !!
Kosta

Sean Boudreau wrote:

Dan Arpin <> darpin@ge-harris.com> > wrote:
: Hi,

: Does anyone know how to set the TCPIP connection establishment timeout
: in the QNX RTP? To phrase it slightly differently: how do you set the
: time that the TCPIP process will wait for a response to its initial
: connection request? Can this be done at all?

: Thanks,

It’s 2 minutes and can’t be changed. You can however ask to
be broken out after X seconds. The traditional way is with
the alarm() func. The more general, rtp, way is for
timer_timeout() to time out the send and reply blocked states
(_NTO_TIMEOUT_SEND | _NTO_TIMEOUT_REPLY).

-seanb