On Mon, Oct 21, 2002, Evgeny Kotsuba wrote:
> >One easy way is to implement your overriden in a lib file linked in
> >after all the source files, before the libraries. This is the usual
> >way
> >to override system libraries.
> hehe. And how shall I call original function ?
> I what to write to some log the input parameters, call original, write
> output and return code. When some error will occured, I want rerun
> squid and dosn't call tcp/ip functions, but instead read events wfrom
> log.
Cute idea. Once I finish moving _all_ comm-relevant calls into comm.cc
you won't need to override the library routines like that - you can
just add the stubs to the routines in comm.cc.
Very, very cute idea.
Adrian
Received on Sun Oct 20 2002 - 19:53:43 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:16:58 MST