1
0
mirror of https://github.com/ZetaKebab/MpcNET.git synced 2025-01-14 22:18:43 +00:00
MpcNET/LibMpcApp/Program.cs
2016-12-02 15:19:18 +01:00

31 lines
677 B
C#

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)
{
}
}
}