Updated examples

This commit is contained in:
Joseph Henry
2017-10-20 12:53:30 -07:00
parent 894e7d7dc1
commit 010ec040a7
20 changed files with 8 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZeroTier;
namespace libztHelloWorld_csharp
{
class Program
{
static void Main(string[] args)
{
Console.Write("waiting for libzt to come online...\n");
libzt.zts_startjoin("config_path", "17d709436c2c5367");
Console.Write("started. now performing a socket call\n");
int fd = libzt.zts_socket(2, 1, 0);
Console.Write("fd=%d\n", fd);
// zts_connect(), zts_bind(), etc...
libzt.zts_stop();
}
}
}