Pinging a server

H

HMS Surprise

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
 
J

Joseph Paterson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top