TIP: Click on subject to list as thread! ANSI
echo: binkd
to: Michael Dukelsky
from: Oli
date: 2021-09-09 10:51:00
subject: Perl on_handshake(): @me

Michael wrote (2021-09-09):

 Ol>> The side effects are a bit confusing:

 Ol>> sub on_handshake
 Ol>> {
 Ol>>      Log(3, ">>");
 Ol>> }

 Ol>> sub after_handshake
 Ol>> {
 Ol>>      Log(3, ">> @me");
 Ol>> }


 Ol>> + 08:43 [1459] outgoing session with 127.0.0.1:24554
 Ol>> - 08:43 [1459] >>
 Ol>> + 08:43 [1459] Perl on_handshake(): @me contains no valid addresses
 Ol>> - 08:43 [1459] OPT CRAM-MD5-fffdf8c077e8c9b94ce2e83d8da0a8ee
 Ol>> [...]
 Ol>> - 08:43 [1459] session in CRYPT mode
 Ol>> - 08:43 [1459] >> 2000:1/2@fakenet
 Ol>> 4000:1/1@testnet


 Ol>> I'm not sure if this is considered to be expected behavior or a
 Ol>> bug?

 MD> Well, from my POV the binkd behavior looks logical here. If you specified
 MD> the values of the @me array, then only the AKA specified in that array
 MD> would be presented. Since you did not specify any values in @me, binkd
 MD> presented all of your AKAs during the handshake. In after_handshake()
 MD> hook, you see the AKAs that were presented during the handshake.

 MD> "Perl on_handshake(): @me contains no valid addresses" is here rather not
 MD> an error message but a warning.


What I find strange is that there is a warning message even if I don't use @me in on_handshake() at all. From my POV it would be more logical, if @me would already initialized with my AKAs and @me = () would let binkd send an "M_BSY: No AKAs in common domains or all AKAs are busy".

Anyway, even if the warning is more confusing than helping, it does work and it can be ignored.

---
                                                                                                                         
* Origin: 1995| Invention of the Cookie. The End. (2:280/464.47)

SOURCE: echomail via QWK@pharcyde.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.