Minor update to C# NuGet package documentation and example
This commit is contained in:
2
.github/workflows/auto-format.yml
vendored
2
.github/workflows/auto-format.yml
vendored
@@ -20,5 +20,5 @@ jobs:
|
||||
with:
|
||||
author_name: github-actions
|
||||
author_email: 41898282+github-actions[bot]@users.noreply.github.com
|
||||
message: 'Code style fixes'
|
||||
message: 'Code style enforcement'
|
||||
add: '.'
|
||||
|
||||
@@ -26,13 +26,16 @@ public class ExampleApp {
|
||||
// node.InitAllowIdentityCaching(true);
|
||||
// node.InitAllowWorldCaching(false);
|
||||
node.InitSetEventHandler(OnZeroTierEvent);
|
||||
node.InitSetPort(0); // Will randomly attempt ports if set to 0
|
||||
//node.InitSetPort(0); // Will randomly attempt ports if not specified or is set to 0
|
||||
node.InitSetRandomPortRange(40000, 50000);
|
||||
// node.InitAllowSecondaryPort(false);
|
||||
|
||||
// (OPTIONAL) Set custom signed roots
|
||||
|
||||
// In this case we only allow ZeroTier to contact our Amsterdam root server
|
||||
// To see examples of how to generate and sign roots definitions see docs.zerotier.com
|
||||
|
||||
/*
|
||||
var rootsData = new byte[] {
|
||||
0x01, 0x00, 0x00, 0x00, 0x00, 0x08, 0xea, 0xc9, 0x0a, 0x00, 0x00, 0x01, 0x6c, 0xe3, 0xe2, 0x39, 0x55, 0x74,
|
||||
0xeb, 0x27, 0x9d, 0xc9, 0xe7, 0x5a, 0x52, 0xbb, 0x91, 0x8f, 0xf7, 0x43, 0x3c, 0xbf, 0x77, 0x5a, 0x4b, 0x57,
|
||||
@@ -52,6 +55,7 @@ public class ExampleApp {
|
||||
0x00, 0x00, 0x00, 0x00, 0x27, 0x09
|
||||
};
|
||||
node.InitSetRoots(rootsData, rootsData.Length);
|
||||
*/
|
||||
|
||||
node.Start(); // Network activity only begins after calling Start()
|
||||
while (! node.Online) {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
[ZeroTier](https://www.zerotier.com)
|
||||
[ZeroTier.Sockets](https://www.zerotier.com)
|
||||
=====
|
||||
Part of the [ZeroTier SDK](https://github.com/zerotier/libzt)
|
||||
|
||||
Securely connect application instances, physical devices, and virtual devices as if everything is on a single LAN. ZeroTier brings your network into user-space. No root, and no host configuration requirements.
|
||||
|
||||
@@ -11,20 +12,3 @@ We've paired our network hyper-visor core with a TCP/UDP/IP stack [(lwIP)](https
|
||||
- SDK Repo: https://github.com/zerotier/libzt
|
||||
- Forum: https://discuss.zerotier.com
|
||||
|
||||
## 1.3.4 Release Notes
|
||||
|
||||
### Added:
|
||||
- IPv6 Support
|
||||
- `Socket.ReceiveTimeout`
|
||||
- `Socket.SendTimeout`
|
||||
- `Socket.ConnectTimeout`
|
||||
- `Socket.SendBufferSize`
|
||||
- `Socket.ReceiveBufferSize`
|
||||
- `Socket.Ttl`
|
||||
- `Socket.LingerState`
|
||||
- `Socket.KeepAlive`
|
||||
- `Socket.NoDelay`
|
||||
- `Socket.Blocking`
|
||||
|
||||
### Bugfixes:
|
||||
- Minor C API fixes
|
||||
|
||||
Reference in New Issue
Block a user