Connect() public method

Connects to an xbox on the network. If multiple consoles are detected this method will attempt to connect to the last connection used. If that connection or information is unavailable this method will fail.
public Connect ( ) : void
return void
Ejemplo n.º 1
0
        private static void InitYeloDebug(string IP)
        {
            xboxDebug = new YeloDebug.Xbox();
            // Do we really need a 5 second timeout period? How about half that?
            xboxDebug.Timeout = 2500;

            // If we are presented with an IP, use it
            if (IP.Split('.').Length == 4)
                xboxDebug.ConnectToIP(IP);
            // otherwise, use auto-detect
            else
            {
                System.Collections.Generic.List<DebugConnection> cons = xboxDebug.QueryXboxConnections();
                xboxDebug.Connect(cons[0].Name);
            }
            _debugName = xboxDebug.DebugName;
            _debugIP = xboxDebug.DebugIP.ToString();
        }