示例#1
0
 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);
 }
示例#2
0
文件: Screen.cs 项目: PyrO70/hwkinect
 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();
 }
示例#3
0
 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();
 }
示例#4
0
        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();
        }
示例#5
0
文件: Server.cs 项目: PyrO70/hwkinect
 public static void Main(string[] args)
 {
     Server server = new Server(4000);
     server.Run();
 }