public static void IrcConnectionList() { IrcConnection irc = new IrcConnection(); irc.OnReadLine += new EventHandler<ReadLineEventArgs>(IrcConnectionListCallback); irc.Connect(SERVER, PORT); irc.WriteLine(Rfc2812.Nick(NICK), Priority.Critical); irc.WriteLine(Rfc2812.User(NICK, 0, REALNAME), Priority.Critical); irc.WriteLine(Rfc2812.List(CHANNEL)); irc.Listen(); }
/// <summary> /// /// </summary> /// <param name="connection"></param> public WriteThread(IrcConnection connection) { this.connection = connection; }
/// <summary> /// /// </summary> /// <param name="connection"></param> public IdleWorkerThread(IrcConnection connection) { this.connection = connection; }
/// <summary> /// /// </summary> /// <param name="connection"></param> public ReadThread(IrcConnection connection) { Queue = Queue.Synchronized(new Queue()); this.connection = connection; }