Ejemplo n.º 1
0
        /// <summary>
        /// Starts our connection by binding our sockets and port,
        /// uses our base client(NetClient)
        /// </summary>
        public void StartUp()
        {
            //Start network client's receiving loop
            base.NetworkThread.Start();
            //Start lidgren network
            this.Start();

            //add to the manager's list if needed
            if (NetworkManager.GetClient(this.Name) == null)
            {
                NetworkManager.AddClient(this);
            }
        }