public FeedReader(Server server, string feedUrl, double pullIntervals) { this.m_server = server; this.m_feedUrl = feedUrl; this.m_interval = pullIntervals; this.m_balloons = new List<ServerBalloon>(); this.m_timer = new Timer(m_interval); this.m_timer.Elapsed += new ElapsedEventHandler(HandleTimerEvent); }
public Screen(string name, int id, Socket socket, Server server) { m_name = name; m_id = id; m_server = server; m_bubbles = new Dictionary<int, ServerBalloon>(); m_queue = new CircularQueue<Message>(64); m_connection = new ScreenConnection(m_queue, socket); m_thread = new Thread(Run); m_thread.Start(); }
public FeedReader(Server server, string feedUrl, double pullIntervals) { this.m_server = server; this.m_feedUrl = feedUrl; this.m_interval = pullIntervals; this.m_queue = new CircularQueue<Message>(64); this.m_client = new WebClient(); this.m_timer = new System.Timers.Timer(m_interval); this.m_timer.Elapsed += (sender, args) => Refresh(); this.m_thread = new Thread(Run); this.m_thread.Start(); }
public static void Main(string[] args) { // Load the configuration file string configPath = "BalloonServer.conf"; if(args.Length > 1) { configPath = args[1]; } // If this path doesn't exist, the config file will be created with default values Configuration.Load(configPath); // Start the server Server server = new Server(Configuration.LocalIPAddress, Configuration.LocalPort); server.Run(); }
public static void Main(string[] args) { Server server = new Server(4000); server.Run(); }