Example #1
0
 public TCPServer(string IP, short myport)
 {
     Listener = new TcpListener(IPAddress.Parse(IP), (int)myport);
     //;Listener.AllowNatTraversal(true); // Fff
     Listener.Start();
     Wrapper         = new ServerWrapper();
     Wrapper.STDERR += new ServerOutputHandler(Wrapper_STDERR);
     Wrapper.STDOUT += new ServerOutputHandler(Wrapper_STDOUT);
     thread          = new Thread(MainThread);
     thread.Start();
     ClientStream = null;
 }
Example #2
0
 public TCPServer(string IP, short myport)
 {
     Listener = new TcpListener(IPAddress.Parse(IP),(int)myport);
     //;Listener.AllowNatTraversal(true); // Fff
     Listener.Start();
     Wrapper = new ServerWrapper();
     Wrapper.STDERR += new ServerOutputHandler(Wrapper_STDERR);
     Wrapper.STDOUT += new ServerOutputHandler(Wrapper_STDOUT);
     thread= new Thread(MainThread);
     thread.Start();
     ClientStream = null;
 }
Example #3
0
 public Ban(ServerWrapper w)
 {
     wrap = w;
     wrap.ChatCommand += new ChatCommandHandler(wrap_ChatCommand);
     Proxy.AddDelegate(false, 1, CheckLogin);
 }
Example #4
0
 public IPlugin(ServerWrapper w)
 {
     Console.WriteLine("Why is this being called oh god");
 }
Example #5
0
 public Give(ServerWrapper w)
 {
     wrap = w;
     wrap.Join += new JoinPartHandler(wrap_Join);
     wrap.ChatCommand += new ChatCommandHandler(wrap_ChatCommand);
 }
Example #6
0
 public IPlugin(ServerWrapper w)
 {
     Console.WriteLine("Why is this being called oh god");
 }