473,386 Members | 1,708 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to check a network connection in C++?

39
Say you have got some connections in your application with different servers. How would you check you connection status with this servers?

Maybe is it possible to ping the server to check the connection status> If so, how would you ping in C++?

Any help appreciated.
Oct 11 '07 #1
1 7594
weaknessforcats
9,208 Expert Mod 8TB
You use ICMP (Internet Control Message Protocol) elements.

You don't say what OS. Here's the starting point for Windows.
Oct 11 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Dicky Cheng | last post by:
Hi, I am using .net remoting technology. I set up a .net remoting client and server in IIS. When the client calls the server, the server will run a long duration method (30-60seconds). I have a...
1
by: JJ | last post by:
Hey All, I need to test a network connection to local lan using a PDA with wireless capabilities. I am using c# as app language. How can I test for connection? Thanks, JJ
3
by: Scott Leonard | last post by:
Hello - I'm writing an application that will be used on "sometimes connected" devices (laptops, tablets). In C#, what is the best way to detect whether a network connection is present? I'd...
7
by: ZRexRider | last post by:
Hi, I'm developing an application that runs on laptops that periodically connect to network. I am collecting data in local tables within the MDB. I want to recognize the occasional network...
2
by: Brent Burkart | last post by:
I have a utility that I want to only run when a network connection is present. I want to plan for the situation when someone unplugs their laptop from the network and takes it into another...
2
by: Thomas | last post by:
hello, which is the easiest way to check if there is a lan connection available. i have to go to a network share in my lan - but if the notebook is not connected to this lan i would like to stop...
1
by: Andrew Smith | last post by:
Hi, we want to check as a prerequisite before talking to our web service, if physical link exists. Does anybody know how to get an event, when a network connection is active again. (The same way...
5
by: sreeramravi | last post by:
I would like to programatically check the connection speed at which a user has connected. Based on the connection speed, I would like to launch an application with specific parameters. Is there...
1
by: nwmotogeek | last post by:
Does anyone know how to change the network connection names on a Windows XP or Windows Server 2003 system?
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.