-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Henrik Nordstrom wrote: > > > On Fri, 30 Sep 2005 [EMAIL PROTECTED] wrote: > >> Sorry,who can tell me how i can get an overview of squid.It is a >> complex giant project to a tyro like me. > > > The beginning of the programmers guide tries to give a overview of the > main components. > >> Is there someone have a idea of squid's archtecture? > > > Yes. > >> or tell me what i can do.I have read the Programmers Guide but failed >> to grasp the main points. > > > The main points you need to grasp are: > > - Cooperative multitasking by callback events. Instead of waiting for > something to happen callbacks is used to signal that a certain event has > taken place; network data available, DNS lookup completed, helper has > returned answer etc... > > - The existence of the main select loop, where most callbacks gets > registered to get called when there is activity on a network connection. > > Then from there is a number of different subcomponents to look at > depending on what part interest you most.
I think it would be fair to describe the architecture around the main select loop is an instance of the Reactor pattern, as documented at: http://www.cs.wustl.edu/~schmidt/PDF/reactor-siemens.pdf Tres. - -- =================================================================== Tres Seaver +1 202-558-7113 [EMAIL PROTECTED] Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDPcqN+gerLs4ltQ4RAsRYAKDFKf3OS1pzy2/q5kNviuuYBIOCwACgiEdH jyC8vbrSxq7hqmW6cXJTQRY= =3T36 -----END PGP SIGNATURE-----
