testing for socket error
Posted: Wed Jun 05, 2013 11:13 pm
Hi Folks,
I read the following:
"If there has been an error connecting to the server the "socketError" message will be sent. (If the error is due to a problem finding the specified host, the error message is returned in the result, and no "socketError" message is sent.)"
in the "How to communicate with other applications using sockets" tutorial at:
http://runrev.screenstepslive.com/s/les ... ng-sockets
but I can not find any examples of how to get at the result to see if there was an error, i.e. bad hostname, no such ipaddr, etc. I also am assuming that if the server should be down the connection attempt would result in a socketTimeout message; is that assumption correct?
Any help figuring this out would be much appreciated.
Thanks,
Daryl
I read the following:
"If there has been an error connecting to the server the "socketError" message will be sent. (If the error is due to a problem finding the specified host, the error message is returned in the result, and no "socketError" message is sent.)"
in the "How to communicate with other applications using sockets" tutorial at:
http://runrev.screenstepslive.com/s/les ... ng-sockets
but I can not find any examples of how to get at the result to see if there was an error, i.e. bad hostname, no such ipaddr, etc. I also am assuming that if the server should be down the connection attempt would result in a socketTimeout message; is that assumption correct?
Any help figuring this out would be much appreciated.
Thanks,
Daryl