Re: [squid-users] Re: redirect program technicalities

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Mon, 12 Feb 2007 12:25:08 +0100

mån 2007-02-12 klockan 13:14 +0530 skrev Siddhesh PaiRaikar:
> On 2/12/07, Siddhesh PaiRaikar <siddhesh.pairaikar@gmail.com> wrote:
> > hi..
> >
> > Can someone please tell me .. that when squid passes on the URL to another
> > program such as say squidguard...
> >
> > does it write to stdin or somewhere else... and also wen it gets back a URL
> > from the external program.. does it get it on stdout...

yes, or it writes to an IPC channel connected to the helpers stdin, and
receives responses on an IPC channel connected to the helpers stdout.

> > as when i studied the code of squidguard i found out that squidguard writes
> > the URLs to and retrieves them from stdout and stdin respectively buti am
> > unable to find that matching code in squid... i tried a lot..

redirect.c, calling helper.c functions for talking to the helper, using
ipc.c functions for setting up the communication.

Regards
Henrik

Received on Mon Feb 12 2007 - 04:25:15 MST

This archive was generated by hypermail pre-2.1.9 : Thu Mar 01 2007 - 12:00:01 MST