Exemplo n.º 1
0
        /// <summary>
        /// Tells the NetInterface that it's ready and is properly deployed.
        /// </summary>
        public void Ready()
        {
            if (cable != null)
            {
                cable.Ready();
            }

            ready = true;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Cable initiated to connect
        /// </summary>
        /// <param name="newCable">Cable calling the connection</param>
        public void CableConnected(Cable newCable)
        {
            if (cable == null)
            {
                cable = newCable;
            }
            else
            {
                // A cable is already connected, disconnect it
                cable.InterfaceDisconnected(this);

                // and connect the new one
                cable = newCable;
                cable.Ready();
            }
        }