aatxe / irc

the irc crate – usable, async IRC for Rust
Mozilla Public License 2.0
530 stars 97 forks source link

With the simple ssl example, why is the sent message not received by the client? #72

Closed danielniccoli closed 7 years ago

danielniccoli commented 7 years ago

Running this example: https://github.com/aatxe/irc/blob/master/examples/simple_ssl.rs

Every message is printed to the console, except for the "Hi!" reply. I'd like to understand why that message is not received by the client?

aatxe commented 7 years ago

This is an artifact of how the IRC protocol works. The server does not send you back messages you send, and thus, it never gets printed in this code. You could get around this by printing all sent messages. This could be something added as a configuration option, or compile-time flag.

danielniccoli commented 7 years ago

Thank you for the quick explanation.