mirror of
https://github.com/ZetaKebab/MpcNET.git
synced 2025-07-01 08:47:36 +00:00
Console app for test created.
This commit is contained in:
30
LibMpcApp/Program.cs
Normal file
30
LibMpcApp/Program.cs
Normal file
@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Net;
|
||||
using System.Threading.Tasks;
|
||||
using LibMpc;
|
||||
|
||||
namespace LibMpcApp
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
var mpc = new Mpc(new IPEndPoint(IPAddress.Loopback, 6600));
|
||||
|
||||
var connected = mpc.ConnectAsync().GetAwaiter().GetResult();
|
||||
if (connected)
|
||||
{
|
||||
StartReadCommands(mpc);
|
||||
}
|
||||
else
|
||||
{
|
||||
Console.WriteLine("Could not connect to MPD");
|
||||
}
|
||||
}
|
||||
|
||||
private static void StartReadCommands(Mpc mpc)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user