public static string SendTextCommand(this XDevkit.IXboxConsole xbc, string Command) { uint connection = xbc.OpenConnection(null); string response = ""; xbc.SendTextCommand(connection, Command, out response); if (!(response.Contains("202") | response.Contains("203"))) { return(response); } try { string line = ""; xbc.ReceiveSocketLine(connection, out line); if (line.Length > 0) { if (line[0] == '.') { return(response); } response = response + Environment.NewLine + line; } } catch { } return("FAIL"); }
public static void Unfreeze(this XDevkit.IXboxConsole xbc) { xbc.SendTextCommand("go"); }
public static void Reboot(this XDevkit.IXboxConsole xbc) { xbc.SendTextCommand("reboot"); }