On Wed, Aug 16, 2000 at 11:21:49AM +0300, Itamar Shtull-Trauring wrote:
> So, a request for a KSK would look like this (using the current code):
> 
> =======================================================================
> 
> # Start the request
> r = Request(KSK("/my/doc"), htl=20)
> 
> # Check if we finished - perhaps the connection to the server died?
> if r.finished.isSet():
>     print "That was fast!"
> else:
>     # Block till the request is over
>     r.finished.wait()
> 
> =======================================================================

Or maybe:

=======================================================================

# Start the request
r = Request(KSK("/my/doc"), htl=20, block=1)

=======================================================================

IMHO this is far more compact than the code above this.

-- 
Travis Bemann
Sendmail is still screwed up on my box.
My email address is really bemann at execpc.com.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 1028 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20000816/c91dd4b5/attachment.pgp>

Reply via email to