“Shashank” <sbalijepalli@precitech.com> wrote in message
news:c94opc$13h$1@inn.qnx.com…
Thanks for the reply. But i’m still a little confused. I am not completely
sure how “Net” and “netpoll” commands work.
I used “netpoll -p 2 -i 2 -r 3” & “Net - t 1”.
Forget it, I missed you were using SMB. These only affect FLEE
Looked at the -r option of SMBFsys.
Other option is to set an alarm() before the fopen and any other file
operation.
As i wrote before:
I’ve used user_smb and mount_smb to mount a windows directory on to my QNX
machine as “/network”. Lets say someone accidentaly disconnects the cable.
I’d like to immediately flag an error rather than have the operator wait
for
about a minute (that’s the time it takes now) to flag an error.
Your suggestions are appreciated.
Shashank
“Mario Charest” postmaster@127.0.0.1 wrote in message
news:c93063$ioa$> 1@inn.qnx.com> …
“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:c926me$9n$> 1@inn.qnx.com> …
Thanks. That seems to work. However, fopen() doesn’t return
immediately
.
So
, if theres an error it takes a few minutes until I can flag an error.
Can I set a timeout for an fopen call or is there any such function?
There are some timeout setup you can do but they affect the whole
network.
Look at netpoll and arguments to Net.
You can also try qnx_net_alive()
Shashank
“Joan Baucells” <“Joan Baucells”@NoSpam.es> wrote in message
news:> 40B4373B.9E38274A@NoSpam.es> …
Try to use fstat or fopen functions on a known existent file in the
other
machine.
Shashank wrote:
I wanted to know if there are any Watcom C function/functions I
could
use to
test the network connection.
Thanks,
Shashank
“Erick Muis” <> emuis@node55.ott.qnx.com> > wrote in message
news:c8ktr1$f74$> 1@inn.qnx.com> …
Not really sure what you want. Are you looking for code
examples?
are you wondering what functions to use? If you could clarify
what
you are looking for then perhaps more people can provide input.
If
you are looking for feedback on your prototype, then “it looks
ok to me” > 
Best regards,
Erick
Shashank <> sbalijepalli@precitech.com> > wrote:
I would really appreciate it if someone can give me a hint.
Thank you,
Shashank
“Shashank” <> sbalijepalli@precitech.com> > wrote in message
news:c8iut1$rp7$> 1@inn.qnx.com> …
I have an application on my QNX machine that communicates
with
a
windows
machine. I am using SMB. I’d like to have a loop controlled
by
a
timer
that
keeps polling the network at regular time intervals to ensure
that
data
is
flowing back and forth.
If there is no network connectivity, I’d like to quit.
Your suggestions are appreciated.
Shashank
\
Erick Muis
Hardware Group
QNX Software Systems Ltd.
Email: emuis at qnx.com
\