Hi everyone;
I need some help
Im want to write a WIndows service C# app which will check some urls and choose the one with the lowest ping (the one with high data transfer speed) stream data from that server, and alse check all other servers and write in log file if any of servers is OFF or can't be accesed. And also if current server speed's down, it should switch to other server automaticly.
Please help people, i'm new in C# and moreover has never written any app like this,
somon
16
Newbie Poster
Recommended Answers
Jump to PostI had done something similar a few years ago.. there might be something out there which is way simpler to implement today. However, I had used the Process class, opened a cmd, literally pinged the server through ping command, and parsed the return time in ms or set the server …
Jump to PostForget about my first post.. i had used that code in 1.0 framework.. post that framework Microsoft created a Ping class.. the below code is synchronous, so the app will await a reply before proceeding. The link i sent in an earlier post has a code snippet to ping asynchronously
…
Jump to Postyep.. too bad this did not exist in Framework 1.0 :)
Please mark this post as solved if its what you need.
thanks
All 9 Replies
jfarrugia
6
Junior Poster
somon
16
Newbie Poster
jfarrugia
6
Junior Poster
jfarrugia
6
Junior Poster
jfarrugia
6
Junior Poster
somon
16
Newbie Poster
jfarrugia
6
Junior Poster
somon
16
Newbie Poster
jfarrugia
6
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.