Open ultrasaurus opened 5 years ago
working on ideas for this tutorial here: https://github.com/ultrasaurus/irc-tokio
I've made a bit of progress, would love feedback, details in the repo README for now. Will work on figuring out what open questions I have and looking for answers or filing issues.
My biggest question is how to test something that uses a TcpStream. The tokio repo doesn't seem to have examples of that. Probably should structure the code differently to make it testable.
Abstracting over AsyncRead + AsyncWrite
is the usual advice there.
Concept: create IRC bot that connects to gitter
IRC is a very simple line-based protocol, we should be able to build a bot with a subset of the full-protocol (5-6 commands)
Draft sequence of steps:
Key concepts
References