예제 #1
0
파일: Server.cs 프로젝트: PyrO70/hwkinect
        public Server(int port)
        {
            m_port = port;
            m_socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream,
                                  ProtocolType.Tcp);
            m_queue = new CircularQueue<Message>(64);
            m_nextScreenID = 0;
            m_nextBalloonID = 0;
            m_screens = new List<Screen>();
            m_bubbles = new Dictionary<int, ServerBalloon>();
            m_reader = new FeedReader(this, "http://localhost", 1000);
            //m_reader.Start();

            m_random = new Random();
        }
예제 #2
0
        public Server(IPAddress address, int port)
        {
            m_address = address;
            m_port = port;
            m_socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream,
                                  ProtocolType.Tcp);
            m_queue = new CircularQueue<Message>(64);
            m_nextScreenID = 0;
            m_screens = new List<Screen>();
            m_bubbles = new Dictionary<string, ServerBalloon>();
            m_feed = new FeedReader(this, Configuration.FeedURL, Configuration.FeedTimeout);
            m_feed.Start();

            m_random = new Random();
        }