[Twisted-Python] TOC and filetranser

Paul Swartz z3p at twistedmatrix.com
Sun Mar 21 13:21:12 EST 2004


On Wed, 2004-03-17 at 04:07, achin wrote:
> hi, I'm writing an AIM bot using twisted's TOC implementation.  i was 
> wondering if this module supports file transfers (namely sending from the 
> TOC client).  and if so, could i get either some sample code, or a more 
> detailed documentation than the one at twistedmatrix.com

The TOC implementation (as well as the OSCAR implementation) basically
assume knowledge of the protocol.  This could be fixed, but since I
don't actively use either of these protocol implementations anymore,
it's not high on my list of priorities.

> my first question regarding the SendFileTransfer class is what exactly is 
> the "cookie" parameter in the __init__ method? (i don't see it documented 
> anywhere)

cookie is an arbitrary string that serves to notify the sending client
which file transfer the receiving client has accepted.

> as a side note, i was wondering if a TOC2 python module exists, as i think 
> TOC2 would be preferable over TOC

From what a quick google for TOC2 found, TOC2 is not significantly
different from TOC, and it shouldn't be hard to modify toc.py into a
toc2.py.  Patches are welcome! :)

-p
-- 
      Paul Swartz
(o_   z3p at twistedmatrix dot com
//\   http://www.twistedmatrix.com/users/z3p.twistd/
V_/_  AIM: Z3Penguin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20040321/0cfcfec2/attachment.pgp 


More information about the Twisted-Python mailing list