It's not a crazy question, though as Spam Catcher has mentioned... it seems
a bit unusual that you can't trap the parsing error, reject the request and
continue on. Even if you can catch the error you may want to add a
"heartbeat" on an important server in any case.
I would avoid "testing" the server via the front-end and deciding that the
lack of a response meant it hung rather I'd suggest you choose another port
to send a signal to. You simply monitor that port to see if you have a
signal. An added bonus is that it can send various signals, a heartbeat (at
a regular interval) but also "query received", "response sent", "I'm idle"
and/or any other signal you might want to keep an eye on.
I'd suggest you search the Internet as I have little doubt that somebody has
written something and placed it in the public domain. I wouldn't limit your
search to VB or .Net as it shouldn't be too hard to translate from Java or
C++ if that's what you end up with.
Tom
"Biffster" <Bi**@Murray.comwrote in message
news:45**********************@news.newshosting.com ...
Okay, crazy question.
I have a tcp client/server app running on a machine. The app takes a
string, delimited by various characters (hl7), parses it, and then Acks
back to the client. The problem we are having is at times, the client (a
different vendor's application) sends unexpected trash in the
string. It is nearly impossible for us to code for every "Trashy" event
that may occur. At this point, our app (rarely!) Hangs and is unable
to ack back.
The question is: Is there anyway to determine if the application is still
running, but "Hung up"??? I know this is a vague question, but any
help would be greatly appreciated.
Thanks!!
Daniel
--
--------------------------------- --- -- -
Posted with NewsLeecher v3.7 Final
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -