Ping Class


Category:
Scripts
VB
Requirements:
Seller:
Price:
-
System:
Rating:
4.5
License:

Description - Ping Class



The Software is provided "AS IS", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and non-infringement. in no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software. old class of mine. I created this class when I was developing a server monitoring system back in 2002, and I reasoned that the easiEST way to know if the server was up is to Ping IT. So, I started searching the web and I found a code developed for C# and after a few Bumps I converted to VB .NET and the code works fine, up to the point of performance. I use the Socket class to Create a packet of raw data to be sent to the host. The send part works fine, but the response (when I listen for the echo of the packet I just sent) takes ages to Process. I`ve checked the docs on Microsoft about the ReceiveFrom method to see if they have some insight about what`s going on, and finally found a solution. Since then I have published this code in some other places, always with good feedback from my fellow developers friends. When I decided to publish it on my website I knew I needed to take another look at this class because so much time has passed. One of the things that always bothered me with this class is that it was synchronous, i.e. when you call the method to ping the host it doesn`t return until the host responds or a time-out is reached. Hence I decided to go through it once more and make a second version of it with asynchronous methods too. This way is up to you to use the method that suits best your application.

Ping Class Works Fine Ping Class


More in VB-Ping Class

Decided Packet Works Fine Fellow Developers Friends