Artifact Content
Not logged in

Artifact d55e0475de9b02d23460933b277f0195e058c92a:

\ net2o tests - msg

require ../client-tests.fs

+db stat( \ )
script? [IF] +debug %droprate [THEN]
require ../test-keys.fs \ we want the test keys - never use this in production!

"test" dhtnick $!

i'm alice



?nextarg [IF] net2o-host $! [THEN]
?nextarg [IF] s>number drop to net2o-port [THEN]

: c:msg-test ( -- )
    [: .time ." Message test" cr ;] $err
    "Hi Bob!" "bob" send-text-to o-timeout
    BEGIN  pad 100 accept cr dup WHILE  pad swap send-text  REPEAT
    drop ['] .time $err ;

script? [IF] announce-me ." connect bob?" key drop
    "bob" nat:connect c:msg-test c:disconnect bye [THEN]