473,387 Members | 1,650 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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-serverIP 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
Nov 24 '07 #1
3 1588
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.
Nov 24 '07 #2
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

Nov 24 '07 #3
In article <fi**********@news-int.gatech.edu>, Mahendra Kumar Kutare
<im**@cc.gatech.eduwrote 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.programmerand for Windows try
<news:comp.os.ms-windows.programmer.win32>

Nov 24 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: nitrogenycs | last post by:
Hello, I need a way to get a notification whenever a variable of an object changes. The approach should be non-intrusive so that I can use existing objects without modifying them. I want to be...
3
by: Søren Reinke | last post by:
Hi there For at project i need to build a Soap proxy with build in caching functionality. The reason is our backend system that we communicate with by Soap, does not always answer (break...
1
by: David Lojudice S. | last post by:
10
by: Saso Zagoranski | last post by:
hi, this is not actually a C# problem but since this is the only newsgroup I follow I decided to post my question here (please tell me where to post this next time if you think this post...
1
by: FluffyCat | last post by:
This week I've I continued my series of design patterns examples using PHP 5 with the Bridge Pattern and the Flyweight Pattern. Here now is my 19th design pattern example using PHP 5, the Proxy...
9
by: Christian Hackl | last post by:
Hi! I've got a design question related to the combination of the NVI idiom (non-virtual interfaces, ) and popular object-oriented patterns such as Proxy or Decorator, i.e. those which have the...
4
by: JB | last post by:
Hi All, I need to write my first "distributed" application and due to my lack of knowledge and experience in that area, I'm stuck on the first big design decision. Reading a lot on distributed...
2
by: existential.philosophy | last post by:
This is a new problem for me: I have some queries that open very slowly in design view. My benchmark query takes about 20 minutes to open in design view. That same query takes about 20 minutes...
1
by: CatchSandeepVaid | last post by:
I have posted this question in hibernate forums also.. As this forum is related to java, i am posting it here also ... In hibernate, presently one-to-one associations are fetched non-lazily... I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.