forked from RevenantX/LiteNetLib
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
29 lines (25 loc) · 810 Bytes
/
Program.cs
File metadata and controls
29 lines (25 loc) · 810 Bytes
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
using System;
using LibSample;
using LiteNetLib;
class Program
{
static void Main(string[] args)
{
//Test ntp
NtpSyncModule ntpSync = new NtpSyncModule("pool.ntp.org");
ntpSync.GetNetworkTime();
if (ntpSync.SyncedTime.HasValue)
{
Console.WriteLine("Synced time test: " + ntpSync.SyncedTime.Value);
}
//HolePunchServerTest holePunchServerTest = new HolePunchServerTest();
//EchoMessagesTest echoMessagesTest = new EchoMessagesTest();
//BroadcastTest broadcastTest = new BroadcastTest();
//holePunchServerTest.Run();
//echoMessagesTest.Run();
//broadcastTest.Run();
NatUPNPModule natPnp = new NatUPNPModule();
natPnp.RequestPortOpen(32145);
Console.ReadKey();
}
}