473,396 Members | 2,154 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,396 software developers and data experts.

Pinging a server

Greetings,

Perhaps this question should be posted to a web-development group and
if so feel free to blast me. However I am a c/c++ developer that needs
to pull some data across the net and really lack finesse (totally) in
that area.

I am working with mobile PCs with cellular broadband access and need to
drive thru areas and test throughput. Manually I can do this using
sites such as zdnet. What I wish to do is have my program access a
fixed size file (or page?) from a server. Using time stamps b4 and
after I could approximate throughput. I'll have this in a loop that
runs about once a minute and also records time and GPS position. (And
hopefully there is a way to get a Merlin U720 to cough up signal
strength.)

Current development suite is Visual Studio 6, but we plan to develop
for a Linux environment too.
Thanx,

john

Dec 16 '06 #1
2 1418
I suggest you have a look at Beej's guide to network programming, which
is a free, online resource that explains network programming in very
simple terms.
It can be found at:
http://beej.us/guide/bgnet/
It applies to both Windows and Linux environments, although the syntax
of a few of the calls is slightly different.
You will be doing socket programming under Linux, and Winsock
programming under Windows. The MSDN website documents all the necessary
functions for Winsock programming.
The code project (http://www.codeproject.com) contains many examples of
Winsock programming, such as the ones found at
http://www.codeproject.com/internet/winsockintro02.asp and
http://www.codeproject.com/internet/winsockintro01.asp

Hope that helps!

Cheers,

Joseph.

Dec 16 '06 #2
Thanks, Beej's guide is very good. I see if I can stumble through.

jh
Joseph Paterson wrote:
I suggest you have a look at Beej's guide to network programming, which
is a free, online resource that explains network programming in very
simple terms.
It can be found at:
http://beej.us/guide/bgnet/
It applies to both Windows and Linux environments, although the syntax
of a few of the calls is slightly different.
You will be doing socket programming under Linux, and Winsock
programming under Windows. The MSDN website documents all the necessary
functions for Winsock programming.
The code project (http://www.codeproject.com) contains many examples of
Winsock programming, such as the ones found at
http://www.codeproject.com/internet/winsockintro02.asp and
http://www.codeproject.com/internet/winsockintro01.asp

Hope that helps!

Cheers,

Joseph.
Dec 18 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: pepsi | last post by:
Using ASP.Net I need to find out if a particular server is up and running. I know the IP Address and name of the server. Its something similar to ping command but I need to have it at the click of...
2
by: Mike | last post by:
Hi, I am strugling with a simple problem which I can't seem to resolve. I have an asp.net page which contains a server-control (flytreeview, which is a kind of a tree to be exact). The tree is...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
8
by: Thomas Dybdahl Ahle | last post by:
Hi, I've writing a python application in which I'd like to have a small "ping label", to always tell the current ping time to the server. It seems however that I have to be root to send those...
1
by: nethajireddy | last post by:
Hello techies In my office network all pc's are pinging and only two pc's let named as A and B, other are c,d.... if we ping A to B or B to A the result is "request time...
2
by: patelxxx | last post by:
Which Protocol do I use, when 'Pinging a server'? I am going to set up a Server status area on our companys website (sits on server A), the PERL coding will PING two other servers (server B & C)...
2
by: gzali | last post by:
i am facing the problem that my live ip server is not pinging on my system i am using wireless connection pionts and the server pinging on some systems not all including me.when i m pinging server...
3
by: Prasanth | last post by:
I tried pinging a machine from python using socket programming but could not do it. Is there any module which we can use to ping the machine < like net::ping in perlor can you give me simple...
1
by: sidd4one | last post by:
Hello, Hi experts when iam pinging from one of my system in the network. Its show iam "Unable to contact to ip adddress".This is message iam ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.