PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.lang.c > Web Proxy Design Queries ?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Web Proxy Design Queries ?

Réponse
 
LinkBack Outils de la discussion
Vieux 24/11/2007, 01h54   #1
Mahendra Kumar Kutare
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Web Proxy Design Queries ?

Hi,

I am trying to implement a typical web proxy. If webserver and web proxy on the same machine then
I intend to use shared memory , else sockets.

I have few design/architecture queries regarding the same -

a) What are the ways to find out that webserver/webproxy server are on the same machine ?
If web client is passing request as - webclient <threads> <proxy-server> <URL(http://...>
I am currently finding the IP address of local machine which is running webproxy server
and then comparing that with the <proxy-server> IP address passed from webclient ? Is
there any other way ?

b) How do i know that webserver which is running on a machine is my own webserver? Based on port
number ?

c) In the case of multiple clients sending requests to same proxy server and then proxy server
fetches response from multiple web server for different requests

Is there any efficient way to figure how to send response back to webclient other than maintaining
a table to keep track of which socket reach request are listening/sending data to ?

This essentially is - HOW do i know the response sent by WEBSERVER is for a which particular CLIENT ?

c) Similar scenario as above , but now if i am using shared memory rather than sockets. How would
I know when to fetch the data from shared memory ? Do I use standard producer/consumer paradigm ?
Any recommended ways ?

Thanks in advance,
Mahendra
  Réponse avec citation
Vieux 24/11/2007, 03h03   #2
Ian Collins
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Web Proxy Design Queries ?

Mahendra Kumar Kutare wrote:
> Hi,
>
> I am trying to implement a typical web proxy. If webserver and web proxy
> on the same machine then I intend to use shared memory , else sockets.
>

Both of these are platform specific and considered off topic here, you
would do better by asking on a group for your platform.

--
Ian Collins.
  Réponse avec citation
Vieux 24/11/2007, 07h10   #3
CBFalconer
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Web Proxy Design Queries ?

Mahendra Kumar Kutare wrote:
>
> I am trying to implement a typical web proxy. If webserver and
> web proxy on the same machine then I intend to use shared memory,
> else sockets.


web servers, proxies, sockets are all foreign to standard ISO C,
the topic of this newsgroup. I don't know just where you should go
with your query, but it is not here.

--
Chuck F (cbfalconer at maineline dot net)
<http://cbfalconer.home.att.net>
Try the download section.



--
Posted via a free Usenet account from http://www.teranews.com

  Réponse avec citation
Vieux 24/11/2007, 08h42   #4
santosh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Web Proxy Design Queries ?

In article <fi8095$9n8$1@news-int.gatech.edu>, Mahendra Kumar Kutare
<imax@cc.gatech.edu> wrote on Saturday 24 Nov 2007 7:24 am:

> Hi,
>
> I am trying to implement a typical web proxy. If webserver and web
> proxy on the same machine then I intend to use shared memory , else
> sockets.


<snip>

Which system(s) are designing for? Consult appropriate groups for them.
This group tries to restrict itself to Standard C which, by itself,
provides nothing to solve your problems.

For answers for UNIX try <news:comp.unix.programmer> and for Windows try
<news:comp.os.ms-windows.programmer.win32>

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h56.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11844 seconds with 12 queries