<s> import sys <EOL> sys . path . insert ( <NUM_LIT:0> , "<STR_LIT>" ) <EOL> import snakemq <EOL> import snakemq . link <EOL> import snakemq . packeter <EOL> import snakemq . messaging <EOL> import snakemq . message <EOL> def on_recv ( conn , ident , message ) : <EOL> print ( "<STR_LIT>" , conn , ident , message ) <EOL> s = snakemq . link . Link ( ) <EOL> s . add_listener ( ( "<STR_LIT>" , <NUM_LIT> ) ) <EOL> pktr = snakemq . packeter . Packeter ( s ) <EOL> m = snakemq . messaging . Messaging ( "<STR_LIT>" , "<STR_LIT>" , pktr ) <EOL> m . on_message_recv . add ( on_recv ) <EOL> msg = snakemq . message . Message ( b"<STR_LIT:hello>" , ttl = <NUM_LIT> ) <EOL> m . send_message ( "<STR_LIT>" , msg ) <EOL> s . loop ( ) </s>
