[dcc2] SIDs and connections to self.

Szymon Stefanek pragma at kvirc.net
Sat Jun 26 11:05:55 EDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 26 June 2004 11:38, myndzi wrote:
> I ran into this annoying little ambiguity while working on
> implementing DCC2 stuff.
>
> It makes sense to keep a single consolidated list of nick,sid pairs so
> that you do not end up with two different connections (one initiated
> by you, and one by them) with the same SID. However when you do this,
> sending DCC2 requests to yourself becomes troublesome -- obviously the
> nick and SID will be the same.

Yes, this looks really as a special case. The cleanest way I can think of to
handle it is to use a message counter (MID=<count>) token.
In this way you are always able to detect if an incoming message is odd or
even in a negotiation.

- --

Szymon Stefanek

- ------------------------------------------------------------------------------
- -
- - Somewhere, something incredible is waiting to be known.
- -
- ------------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFA3ZDTRu+qkQYW8QERAsOvAJ9YiKovOKFUfekXj7OIDgjR++mHqgCg69Ry
dgLdbyz4Qh3awLE8V/D8I5U=
=7Dzn
-----END PGP SIGNATURE-----


More information about the dcc2 mailing list