On Tue, 18 Jul 2006 22:25:22 -0500
Ken Williams <[EMAIL PROTECTED]> wrote:

> Could you hijack the internal functions that read & write data on the  
> socket?  I.e. if call_function() uses _send() and _receive()  
> internally, do:
<snip code>

Ooooh.. provide custom send/receive functions.. I like that. Currently
the "lowest" level you can use this code is to give it a pair of
filehandles, but actually, that might be better.

Allow the lowest level of access to be function-based, write most of the
test code using those, to ensure that the correct request data is being
generated, and the responses are interpreted correctly. Then a smaller set
of tests at the end to just ensure that the handle-based IO works.

I'm starting to like that idea; though it does still need some test of
handle IO...

-- 
Paul "LeoNerd" Evans

[EMAIL PROTECTED]
ICQ# 4135350       |  Registered Linux# 179460
http://www.leonerd.org.uk/

Attachment: signature.asc
Description: PGP signature

Reply via email to