1
0
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:
glucaci
2016-12-02 15:19:18 +01:00
parent cbbf46f877
commit c95c09fa2c
6 changed files with 128 additions and 24 deletions

30
LibMpcApp/Program.cs Normal file
View 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)
{
}
}
}