Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

- 2011-2012

: 02/12/2011

.

(client server) sockets C.
proxy server ( ) client
().
O proxy server server sites
. proxy server,
Internet ""
proxy, web server,
, proxy server.


TCP client TCP proxy server
Linux ( diogenis, zenon).
O client proxy server :
GET www.ceid.upatras.gr/index.html
O proxy server web server (..
www.ceid.upatras.gr) (.. index.html)
HTTP. proxy server ( html )
( ) client .
client proxy server
web server, client
:
GETNEW www.ceid.upatras.gr/index.html
proxy server web server
. proxy server
GETNEW
web server.
O proxy server
(2) client.
fork(). ,
.
(server_port) ,

server (.. proxy_server p 9000).
ports
. 10 ports,
[9000 + (_-1)*10] (.. 1 9000
9009).


: (i) , (ii)
.
site .
server : proxy_server p <server_port> (.. proxy_server p
9000)
client : proxy_client s <server_IP> <server_port> (..
proxy_client s 150.140.141.182 9000).
standard input (.. GET www.ceid.upatras.gr/index.html),
html standard output
.

,
.
diogenis zenon,
servers .

You might also like