public void Start() { DeviceCache.Current.Init(); BlackTableHelper.Load(); ServerInstrumentation.Current.Init(); if (File.Exists("data.txt")) { File.Delete("data.txt"); } var port = CurrencyStoreSection.Instance.Server.Port; var queue = CurrencyStoreSection.Instance.Server.Backlog; socketListener = new TcpSocketListener(IPAddress.Any, port, queue); socketListener.SocketConnected += new EventHandler <SocketEventArgs>(SocketConnected); socketListener.Start(); //processor.Start(); }
public void Start() { DeviceCache.Current.Init(); BlackTableHelper.Load(); ServerInstrumentation.Current.Init(); if (File.Exists("data.txt")) { File.Delete("data.txt"); } var port = CurrencyStoreSection.Instance.Server.Port; var queue = CurrencyStoreSection.Instance.Server.Backlog; socketListener = new TcpSocketListener(IPAddress.Any, port, queue); socketListener.SocketConnected += new EventHandler<SocketEventArgs>(SocketConnected); socketListener.Start(); //processor.Start(); }