You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Joseph Henry e818989125 reversed fix for ios/osx xcode build using latest ZTO 9 years ago
attic LWIP 2.0.0 adaptations, formatted debug outputs 10 years ago
docs changes to timers, removed unused code 9 years ago
ext picotcp udp updates 9 years ago
integrations xcode osx example app update 9 years ago
src picotcp udp updates 9 years ago
tests picotcp udp updates 9 years ago
zerotierone reversed fix for ios/osx xcode build using latest ZTO 9 years ago
.gitignore API and docs update 10 years ago
COPYING Rebuilt ZeroTierUnity-OSX bundle project 10 years ago
Jenkinsfile updated JNI build, added unit test targets to Jenkinsfile 10 years ago
LICENSE.GPL-2 Rebuilt ZeroTierUnity-OSX bundle project 10 years ago
LICENSE.GPL-3 Rebuilt ZeroTierUnity-OSX bundle project 10 years ago
Makefile docker test update + makefile update 10 years ago
README.md changes to timers, removed unused code 9 years ago
check.sh minor unit test check script update 10 years ago
docker_demo.name added compilation sanity checks, unit test script, updated docs 10 years ago
increment.sh ios example app update 10 years ago
make-liblwip.mk picotcp/lwip ipv4/ipv6 fully functional, needs stress testing 10 years ago
make-linux.mk picotcp udp updates 9 years ago
make-mac.mk picotcp udp updates 9 years ago
objects.mk updated included ZTO version 9 years ago
test.sh minor ios/osx project updates 10 years ago

README.md

ZeroTier SDK

ZeroTier-enabled apps and devices.

Secure virtual network access embedded directly into applications, games, and devices. Imagine starting an instance of your application or game and having it automatically be a member of your virtual network without having to rewrite your networking layer. Check out our Integrations to learn how to integrate this into your application, device, or ecosystem.

How do I use it?

There are generally two ways one might want to use the service.

  • The first approach is a compile-time static linking of our service directly into your application. With this option you can bundle our entire functionality right into your app with no need to communicate with a service externally, it'll all be handled automatically. This is most typical for mobile applications, games, etc.

  • The second is a service-oriented approach where our network call "intercept" is dynamically-linked into your applications upon startup and will communicate to a single ZeroTier service on the host. This can be useful if you've already compiled your applications and can't perform a static linking.

Image

How does it work?

We've designed a background tap service that pairs the ZeroTier protocol with swappable user-space network stacks. We've provided drivers for Lightweight IP (lwIP) and picoTCP. The aim is to give you a new way to bring your applications onto your virtual network. For a more in-depth explanation of our technology take a look at our SDK Primer

APIs

Hook/Intercept

  • Uses dynamic loading of our library to allow function interposition or "hooking" to re-implement traditional socket API functions like socket(), connect(), bind(), etc.

SOCKS5 Proxy

  • Provides an integrated SOCKS5 server alongside the ZeroTier service to proxy connections from an application to resources on a ZeroTier network. For instance, a developer which has built an iOS app using the NSStreams API could add ZeroTier to their application and simply use the SOCKS5 support build into NSStreams to reach resources on their network. An Android developer could do the same using the SOCKS5 support provided in the Socket API.

Direct Call

  • Directly call the zt_ API specified in SDK.h. For this to work, just use one of the provided headers that specify the interface for your system/architecture and then either dynamically-load our library into your app or compile it right in.

Important Build Flags

  • SDK_IPV4=1 - Enable IPv4 support

  • SDK_IPV6=1 - Enable IPv6 support

  • SDK_DEBUG=1 - Enables SDK debugging

  • SDK_PICOTCP=1 - Enable the use of picoTCP (recommended)

  • SDK_PICOTCP_DEBUG=1 - Enables debug output for the picoTCP network stack

  • SDK_LWIP=1 - Enable the use of lwIP (deprecated)

  • SDK_LWIP_DEBUG=1 - Enables debug output for the lwIP library.


Apple

  • For everything: make apple
iOS
  • Embedding within an app make ios_app_framework -> build/ios_app_framework/*
  • Unity3D plugin make ios_unity3d_bundle -> build/ios_unity3d_bundle/*
OSX

Linux

Android

  • For everything: make android

  • Embedding within an app make android_jni_lib -> build/android_jni_lib/YOUR_ARCH/libZeroTierOneJNI.so

  • Unity 3D plugin make android_unity3d_plugin -> build/android_unity3d_plugin/*


Windows

  • Not yet.

Image