[Twisted-Python] TOC and filetranser

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 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) as a side note, i was wondering if a TOC2 python module exists, as i think TOC2 would be preferable over TOC thanks, -andrew

On Wed, 2004-03-17 at 04:07, achin wrote:
as a side note, i was wondering if a TOC2 python module exists, as i think TOC2 would be preferable over TOC
Dunno about TOC2, but there's an OSCAR implementation (twisted.protocols.oscar) which might have more advanced features for talking to AIM. -- Itamar Shtull-Trauring http://itamarst.org Looking for a job: http://itamarst.org/resume.html

yeah, i saw that, but I'm hesitant to use OSCAR: 1) AOL occasionally changes to OSCAR protocol to break any 3rd-party implementations that have reverse-engineered it. 2) the module is listed as unstable (AOL hasn't released a spec for OSCAR, while it has published a spec for TOC) but thanks for the suggestion -andrew On Wed, 17 Mar 2004, Itamar Shtull-Trauring wrote:
On Wed, 2004-03-17 at 04:07, achin wrote:
as a side note, i was wondering if a TOC2 python module exists, as i think TOC2 would be preferable over TOC
Dunno about TOC2, but there's an OSCAR implementation (twisted.protocols.oscar) which might have more advanced features for talking to AIM.

achin wrote:
yeah, i saw that, but I'm hesitant to use OSCAR: 1) AOL occasionally changes to OSCAR protocol to break any 3rd-party implementations that have reverse-engineered it.
2) the module is listed as unstable
This isn't a point. Most modules in Twisted are unstable :-). It doesn't mean that they're broken, it means that they *may* change (but we still make compatibility a goal, always!). The only reason that toc.py is unstable is because it's (apparently) unmaintained and deprecated. -- Twisted | Christopher Armstrong: International Man of Twistery Radix | Release Manager, Twisted Project ---------+ http://radix.twistedmatrix.com/

ok, i guess i misinterpreted "unstable". i'll take a look at OSCAR -thanks On Wed, 17 Mar 2004, Christopher Armstrong wrote:
achin wrote:
yeah, i saw that, but I'm hesitant to use OSCAR: 1) AOL occasionally changes to OSCAR protocol to break any 3rd-party implementations that have reverse-engineered it.
2) the module is listed as unstable
This isn't a point. Most modules in Twisted are unstable :-). It doesn't mean that they're broken, it means that they *may* change (but we still make compatibility a goal, always!). The only reason that toc.py is unstable is because it's (apparently) unmaintained and deprecated.

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
participants (4)
-
achin
-
Christopher Armstrong
-
Itamar Shtull-Trauring
-
Paul Swartz