Connect() public method

Connects to the specified server and port, when the connection fails the next server in the list will be used.
The connection failed If there is already an active connection
public Connect ( string addresslist, int port ) : void
addresslist string List of servers to connect to
port int Portnumber to connect to
return void
Example #1
0
 public static void IrcConnectionList()
 {
     IrcConnection irc = new IrcConnection();
     irc.OnReadLine += new ReadLineEventHandler(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();
 }