![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Sep 2004
Location: JHB , South Africa
Posts: 79
Rep Power: 5
![]() |
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! |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Sep 2004
Posts: 38
Rep Power: 0
![]() |
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.
|
|
|
|
|
|
#3 |
|
Programmer
Join Date: Sep 2004
Location: JHB , South Africa
Posts: 79
Rep Power: 5
![]() |
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! |
|
|
|
|
|
#4 |
|
Programmer
Join Date: Sep 2004
Posts: 38
Rep Power: 0
![]() |
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 |
|
|
|
|
|
#5 |
|
Programmer
Join Date: Sep 2004
Location: JHB , South Africa
Posts: 79
Rep Power: 5
![]() |
Thansk Ashcroft, will look into it.
__________________
Ravilj's OpenGL Terrain aka WinTerrain Last Updated: 17/01/2005! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|