コード例 #1
0
 /// <summary>
 /// public method <c>Disconnect</c> attempts to disconnect the established MiraConnection instance and nullifies it.
 /// </summary>
 /// <returns>void.</returns>
 public void Disconnect()
 {
     if (Mira != null)
     {
         Mira.Disconnect();
         Mira = null;
     }
 }
コード例 #2
0
 /// <summary>
 /// public method <c>Connect</c> attempts to connect a new MiraConnection instance attached to the console to the PS4.
 /// </summary>
 /// <returns>True if the connection was established, false otherwise.</returns>
 public bool Connect()
 {
     Mira = new MiraConnection(IP);
     return(Mira.Connect());
 }