Skip to content

Instantly share code, notes, and snippets.

@mlehman
Created June 2, 2010 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mlehman/422649 to your computer and use it in GitHub Desktop.
Save mlehman/422649 to your computer and use it in GitHub Desktop.
TocClient tc = new TocClient();
tc.Message += new MessageEventHandler(OnMessage);
tc.SignOn("myscreenname","password");
tc.StartListening();
...
protected void OnMessage(object sender, MessageEventArgs e){
WriteLine("{0}: {1}",e.From, e.Message);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment