On Wed, Feb 12, 2003 at 10:04:51PM +0100, Tomasz Bryja wrote:
> Hello!
> 
>   I've read you post about incorporating the /dccserver function in irssi.
> I have the same problem and was wondering, have you found a solution? :)

  I've hacked together support for it, yes.  Right now it works fine on
the few-months old CVS copy I started from.  diff'ing and patching
against current CVS yields a few bits of weirdness though, which I'm not
sure are my code or the current CVS being screwed.

  The patch is INCREDIBLY hacky due to the nature of what's needed:

        1) Open and listen on a TCP port
        2) When you receive a connection, parse commands, make a
        possible reply, then:
        3) USE THE SAME TCP CONNECTIOn for the chat or get.

Point 3 is what makes it incrediby hacky.  I've had to munge a current
connection around to become a DCC CHAT or DCC GET on the fly.  This
means duplicating some code, but without changing a lot of how normal
dcc-chat.c and dcc-get.c work I can't see any other way to do this.
I've also had to un-static a few functions elsewhere to allow me to NOT
duplicate even more code.

  I've only just gotten the DCC GET working yesterday and haven't had
chance to test vanilla CVS to see if the same problem is there.  I'll
try and get to that today and post a patch whatever by the end of the
day.

-Ath
-- 
- Athanasius = Athanasius(at)miggy.org / http://www.miggy.org/
                  Finger athan(at)fysh.org for PGP key
           "And it's me who is my enemy. Me who beats me up.
Me who makes the monsters. Me who strips my confidence." Paula Cole - ME

Attachment: msg00648/pgp00000.pgp
Description: PGP signature

Reply via email to