Connect() public method

public Connect ( ) : void
return void
Exemplo n.º 1
0
 public ServerWrapper()
 {
     AppDomain.CurrentDomain.ProcessExit += new EventHandler(CurrentDomain_ProcessExit);
     SetupServer();
     ServerProxy = new Proxy(25564, 25565, IPAddress.Any);
     ServerProxy.Connect();
     LoadPlugins(Assembly.GetExecutingAssembly());
     Start();
     Say("Ready.");
     while (true)
     {
         string str = Console.ReadLine();
         if (str == "exit")
         {
             Stop(true);
         }
         SendCommand(str);
     }
 }
Exemplo n.º 2
0
 public ServerWrapper()
 {
     AppDomain.CurrentDomain.ProcessExit += new EventHandler(CurrentDomain_ProcessExit);
     SetupServer();
     ServerProxy = new Proxy(25564, 25565, IPAddress.Any);
     ServerProxy.Connect();
     LoadPlugins(Assembly.GetExecutingAssembly());
     Start();
     Say("Ready.");
     while (true)
     {
         string str = Console.ReadLine();
         if (str == "exit")
             Stop(true);
         SendCommand(str);
     }
 }