コード例 #1
0
        /// <summary>
        /// Start up the server with all its components.
        /// </summary>
        /// <param name="presentationName">The name of the current presentation.</param>
        public void Start(String presentationName)
        {
            // if we are not running already
            if (!this.isRunning())
            {
                if (this.announcer != null)
                {
                    this.announcer.Dispose(); // clear resources
                }
                // create the server announcer based on our presentation name
                this.announcer = new ServerAnnouncer(Constants.SERVER_IPRANGE, Constants.SERVER_PORT, presentationName);

                // create and start new thread
                this.thread      = new Thread(this.Run);
                this.thread.Name = "PPRServer";
                this.thread.Start();
            }
        }
コード例 #2
0
        /// <summary>
        /// Start up the server with all its components.
        /// </summary>
        /// <param name="presentationName">The name of the current presentation.</param>
        public void Start(String presentationName)
        {
            // if we are not running already
            if ( !this.isRunning() )
            {
                if ( this.announcer != null )
                    this.announcer.Dispose(); // clear resources
                // create the server announcer based on our presentation name
                this.announcer = new ServerAnnouncer(Constants.SERVER_IPRANGE, Constants.SERVER_PORT, presentationName);

                // create and start new thread
                this.thread = new Thread(this.Run);
                this.thread.Name = "PPRServer";
                this.thread.Start();
            }
        }