-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
38 lines (31 loc) · 1.07 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using netnje.Structures;
using System.Threading;
namespace netnje
{
class Program
{
private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
static void Main(string[] args)
{
log.InfoFormat("Starting netnje version {0}", typeof(Program).Assembly.GetName().Version);
foreach (var name in Assembly.GetExecutingAssembly().GetManifestResourceNames())
{
log.InfoFormat("Embedded resource: {0}", name);
}
NjeClient client = new NjeClient("NETNJE", "FRYJLX1", "bsdm.yvanj.me", 175);
client.Connect();
while(client.IsConnected)
{
client.Poll();
Thread.Sleep(1000);
}
Console.WriteLine("Hit enter");
Console.ReadLine();
}
}
}