Example #1
0
 //starts the irc client
 public void startClient()
 {
     con = new IrcConnect(newIP, newPort, newUsername, newPassword, newChannel, this);
     if (con != null)
     {
         if (!con.isConnectionEstablised)
         {
             con.Connect();
         }
         else
         {
             DebugCallBack("You are already connected to a server, disconnect first! \n");
         }
     }
     else
     {
         if (DebugCallBack != null)
         {
             DebugCallBack("You are already connected to a server, disconnect first! \n");
         }
     }
 }
Example #2
0
 //creates a thread for the pinger
 public Pinger(SimpleIRC sirc, IrcConnect ircCon)
 {
     simpleirc  = sirc;
     ircConnect = ircCon;
     pingSender = new Thread(new ThreadStart(this.Run));
 }
Example #3
0
 //overload constructor
 public DCCClient(SimpleIRC sirc, IrcConnect ircCon)
 {
     simpleirc  = sirc;
     ircConnect = ircCon;
 }