| Dart Home | PowerTCP Sockets for .NET | Custom Development | Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
| Author | Forum: PowerTCP Sockets for .NET (Secure and Standard) Topic: Need to check if the TCP connection is busy, how to do this? |
| iamhrh From: Norcross, GA USA Posts: 5 Member Since: 12/15/05 |
posted June 30, 2006 3:01 PM I'm probably missing something obvious here, but I'm currently sending and recieving with the asyncronous methods (beginsend, beginrecieve). Since some of these sends / recieves are initiated by the GUI, i'm looking for a way to avoid trying to send or recieve when the connection is already busy. Any suggestions? |
| Amit From: Rome, NY USA Posts: 315 Member Since: 03/15/06 |
posted July 3, 2006 1:30 PM Hello, I have read your query and it is my understanding that you are looking to check for the connection before trying to send or receive. If this is the said scenario, then please note that when the connection is busy, then your application will always give an error. It is this error your application needs to catch, so I would suggest you to try changing the code in your application for the said error message. Likewise, when an application will connect to the server and the connection is busy, normally the following error message is thrown: “No connection could be made because the target machine actively refused it”. I hope this will be of help. In case of further assistance/ clarifications, please feel free to write back and I would be glad to assist you. Have a nice day ahead. Best Regards, Amit |
| Reply | PowerTCP Sockets for .NET (Secure and Standard) Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|