Added a multithreaded example, and added comments to examples.
This commit is contained in:
parent
74528c9d4c
commit
f5654abd6e
3 changed files with 39 additions and 1 deletions
|
@ -21,6 +21,7 @@ fn main() {
|
|||
options: HashMap::new(),
|
||||
};
|
||||
let irc_server = IrcServer::from_config(config).unwrap();
|
||||
// The wrapper provides us with methods like send_privmsg(...) and identify(...)
|
||||
let server = Wrapper::new(&irc_server);
|
||||
server.identify().unwrap();
|
||||
for message in server.iter() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue