Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 19th, 2004, 4:53 PM   #1
Ravilj
Programmer
 
Ravilj's Avatar
 
Join Date: Sep 2004
Location: JHB , South Africa
Posts: 79
Rep Power: 5 Ravilj is on a distinguished road
Hi got a project that needs to be done and not to sure how to tackle it. The project states write a program to calculate how long it takes for a random web-page to load. Than I need to log the data and such... Now dont worry bout the random url i can easily slap together something for that. What I really need help with is retrieving the URL. I would prefer to do this using console rather since I am completely at home with it. Thats if it is possilbe.
__________________
Ravilj's OpenGL Terrain aka WinTerrain Last Updated: 17/01/2005!
Ravilj is offline   Reply With Quote
Old Sep 19th, 2004, 6:17 PM   #2
Ashcroft
Programmer
 
Join Date: Sep 2004
Posts: 38
Rep Power: 0 Ashcroft is on a distinguished road
I'd use wget, works on unix and windows, and has tons of options. If it is a programming assignment that requires you write the network code yourself I'd suggest a network programming tutorial or a copy of "Unix Network Programming" by Richard Stevens.
Ashcroft is offline   Reply With Quote
Old Sep 20th, 2004, 5:59 PM   #3
Ravilj
Programmer
 
Ravilj's Avatar
 
Join Date: Sep 2004
Location: JHB , South Africa
Posts: 79
Rep Power: 5 Ravilj is on a distinguished road
its for a probabalistics course so they really interested in the time rather than the code but it still needs to be coded :/
__________________
Ravilj's OpenGL Terrain aka WinTerrain Last Updated: 17/01/2005!
Ravilj is offline   Reply With Quote
Old Sep 20th, 2004, 7:35 PM   #4
Ashcroft
Programmer
 
Join Date: Sep 2004
Posts: 38
Rep Power: 0 Ashcroft is on a distinguished road
Depending on how much programming is actually required by the assignment I'd suggest on of the following:

1) A shell script driving wget
2) A simply C program driving wget
-Use 'popen' to run program and read the time results
3) A simple C or perl program using existing one of the http libraries available. http://www.w3.org/Library/.
4) A simple C socket program that resolves the destination, starts a timer, connects and downloads, ends timer. Using raw socket and resolver code.
-Simple code to do this can be found at http://pont.net/socket/prog/tcpClient.c
Ashcroft is offline   Reply With Quote
Old Sep 21st, 2004, 8:53 AM   #5
Ravilj
Programmer
 
Ravilj's Avatar
 
Join Date: Sep 2004
Location: JHB , South Africa
Posts: 79
Rep Power: 5 Ravilj is on a distinguished road
Thansk Ashcroft, will look into it.
__________________
Ravilj's OpenGL Terrain aka WinTerrain Last Updated: 17/01/2005!
Ravilj is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:16 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC