Example #1
0
 public DispatchServer(string name)
 {
     this.name = name;
     this.server = new Server();
     this.server.OnReceive += new THOK.UDP.ReceiveEventHandler(this.server_OnReceive);
     this.LoadTable();
 }
Example #2
0
 public override void Initialize(string file)
 {
     Config.Configuration config = new Config.Configuration(file);
     server = new Server();
     ip = config.IP;
     port = config.Port;
     protocol = (IProtocolParse)ObjectFactory.CreateInstance(config.Type);
     server.OnReceive += new ReceiveEventHandler(server_OnReceive);
 }