Mercurial > pidgin
comparison src/protocols/oscar/aim_cbtypes.h @ 3752:b32474e522fa
[gaim-migrate @ 3890]
From: "William T. Mahan" <wtm2@duke.edu>
This patch, against CVS HEAD, fixes three bugs in Oscar File Transfer
support. I can split it up further if desired.
* Send a null checksum when initiating a file transfer, which fixes
"files don't match" warnings produced by some versions of WinAIM; add
a compile-time option to actually compute the checksum, which is
slow but necessary when sending to some Mac clients.
* Don't allow sending files to oneself, because it causes all kinds of
subtle problems and it's not useful.
* Don't crash when there is an error writing to the output file when
receiving.
From: "William T. Mahan" <wtm2@duke.edu>
This patch 2 of 3, which applies on top of the first, adds support for
reverse connections for Oscar File Transfer, the lack of which has
been the biggest complaint so far. Reverse connections are used by
newer AIM clients when there is difficulty verifying the IP of the
sender.
From: "William T. Mahan" <wtm2@duke.edu>
This patch 3 of 3, which applies on top of the first 2, removes the
alarm() and sigaction() calls that were added by my original FT patch
to detect transfer timeouts. Besides apparently not working on
Windows, they involved a lot of ugly code to handle a special case.
My new approach is to add destructors that can called when SNACs are
freed; a timeout is detected when a request SNAC is cleaned up before
the transfer is accepted. Although this touches several files, it is
more generic than the old method. I tried to implement this in an
unintrusive manner, so that there is little preformance penalty for
SNACs that do not use destructors.
My first two patches should work fine without this. If there are any
objections to the third patch, I ask that the first two patches be
applied, in which case I will set up a SourceForge page for this one.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 19 Oct 2002 05:22:30 +0000 |
parents | e941bfbacf7c |
children | 765769211688 |
comparison
equal
deleted
inserted
replaced
3751:e25577506dec | 3752:b32474e522fa |
---|---|
267 #define AIM_CB_SPECIAL_CONNERR 0x0003 | 267 #define AIM_CB_SPECIAL_CONNERR 0x0003 |
268 #define AIM_CB_SPECIAL_CONNCOMPLETE 0x0004 | 268 #define AIM_CB_SPECIAL_CONNCOMPLETE 0x0004 |
269 #define AIM_CB_SPECIAL_FLAPVER 0x0005 | 269 #define AIM_CB_SPECIAL_FLAPVER 0x0005 |
270 #define AIM_CB_SPECIAL_CONNINITDONE 0x0006 | 270 #define AIM_CB_SPECIAL_CONNINITDONE 0x0006 |
271 #define AIM_CB_SPECIAL_IMAGETRANSFER 0x007 | 271 #define AIM_CB_SPECIAL_IMAGETRANSFER 0x007 |
272 #define AIM_CB_SPECIAL_MSGTIMEOUT 0x008 | |
272 #define AIM_CB_SPECIAL_UNKNOWN 0xffff | 273 #define AIM_CB_SPECIAL_UNKNOWN 0xffff |
273 #define AIM_CB_SPECIAL_DEFAULT AIM_CB_SPECIAL_UNKNOWN | 274 #define AIM_CB_SPECIAL_DEFAULT AIM_CB_SPECIAL_UNKNOWN |
274 | 275 |
276 /* SNAC flags */ | |
277 #define AIM_SNACFLAGS_DESTRUCTOR 0x0001 | |
275 | 278 |
276 #endif/*__AIM_CBTYPES_H__ */ | 279 #endif/*__AIM_CBTYPES_H__ */ |