Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Feb 27th, 2005, 1:18 PM   #1
bbrandoman
Newbie
 
Join Date: Feb 2005
Posts: 1
Rep Power: 0 bbrandoman is on a distinguished road
C Proxy HELP!!!!!

I am desperate!!!!! anyone that can help it is much appreciated. ok i just need to:

Implement a simple proxy web server that does the
following: accept a GET message from a browser and forward
it to the web server, receive HTTP response from the server
and send it to the browser.

Ive got the pseudocode:

while (1)
accept request from any client
parse info from client
open connection to web server
forward HTTP request to web server
wait till you get HTTP response
forward HTTP response to client.
close connection to client.

i just need to turn this into actual C code. I am stumped, i cant think of where to begin..
bbrandoman is offline   Reply With Quote
Old Feb 27th, 2005, 1:56 PM   #2
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
Begin with googling for a tutorial on "Sockets in C"
__________________

tempest is offline   Reply With Quote
Old Feb 27th, 2005, 4:43 PM   #3
Encryption
Programmer
 
Encryption's Avatar
 
Join Date: Feb 2005
Posts: 42
Rep Power: 0 Encryption is on a distinguished road
Send a message via AIM to Encryption Send a message via MSN to Encryption Send a message via Yahoo to Encryption
The easiest way to begin...

bool loop = 1;
While(loop == 1)
{
}
yep, thats where you being...as for the rest http://c.ittoolbox.com/browse.asp?c=...winsock%2Ehtml

do some winsock
__________________
Quote:
Originally Posted by Bjarne Stroustrup
* "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do succeed, you will blow away your whole leg."

* "I have always wished that my computer would be as easy to use as my telephone. My wish has come true. I no longer know how to use my telephone."
Encryption 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 9:52 PM.

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