GitRead 中文社区
首页趋势排行榜原创文章严选周刊
更多资源
新手训练营
精选专题热门话题GitHub 文档资源精选实战指南

ziti-tunnel-sdk-c

  • 语言C
  • 默认分支main
  • 大小3.7 MB
  • 更新3 天前
  • Issues115
在 GitHub 打开
avataropenziti

项目介绍

openziti/ziti-tunnel-sdk-c 是一个托管在 GitHub 上的开源项目,主要使用 C 编写,采用 Apache License 2.0 许可证,目前获得 63 个 Star、47 次 Fork。

仓库全名
openziti/ziti-tunnel-sdk-c

README 摘要

Ziti Tunneler SDK The Ziti Tunneler SDK provides protocol translation and other common functions that are useful to Ziti Tunnelers. What's a Ziti Tunneler? The main article about tunnelers is here. Editors may follow the "Edit this page" link on every page. What is the Ziti Tunneler SDK? The Ziti Tunneler SDK provides functionality that is common to Ziti Tunnelers across supported operating systems: Converse with…

完整内容见 GitHub 原始 README 或本页 。

常见问题

ziti-tunnel-sdk-c 用什么语言开发?

主要使用 C 编写,采用 Apache License 2.0 许可证,目前有 63 个 Star。

ziti-tunnel-sdk-c 可以免费商用吗?

仓库采用 Apache License 2.0 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 ziti-tunnel-sdk-c 的源码?

可以直接克隆仓库:git clone https://github.com/openziti/ziti-tunnel-sdk-c.git,默认分支为 main;安装与运行步骤见仓库 README。

ziti-tunnel-sdk-c 最近还在维护吗?

仓库最近一次更新为 3 天前,当前有 115 个未关闭 Issue;Star 数为 63,可作为社区活跃度的参考。

本页面展示项目元数据与原始 README,GitRead 中文社区 编辑团队负责选题收录。

相关仓库

torvalds/linux avatar
linuxtorvalds
5 小时前
256.0k
67.5k
3

Linux 内核源码树

C
6.2 GB
3
详情
Genymobile/scrcpy avatar
scrcpyGenymobile
2 天前
155.0k
13.9k
2.8k

显示并控制你的 Android 设备

androidcffmpeg+5
C
9.1 MB
1
详情
microsoft/PowerToys avatar
PowerToysmicrosoft
30 分钟前
141.1k
8.7k
8.1k

Microsoft PowerToys 是一组实用工具,可大幅提升 Windows 上的生产力和自定义体验

advanced-pastecolor-pickercommand-palette+9
C
583.2 MB
0
详情
ventoy/Ventoy avatar
Ventoyventoy
3 周前
80.9k
5.1k
1.0k

一种新的可启动 USB 解决方案。

arm64auto-installbootable-usb+15
C
221.7 MB
0
详情
obsproject/obs-studio avatar
obs-studioobsproject
5 小时前
79.6k
11.0k
856

OBS Studio - 免费开源的直播和屏幕录制软件

cc-plus-pluslive-streaming+7
C
83.6 MB
0
详情
redis/redis avatar
redisredis
1 小时前
77.5k
18.7k
2.3k

对于构建实时数据驱动应用的开发者而言,Redis 是首选、最快且功能最丰富的缓存、数据结构服务器,以及文档和向量查询引擎。

cachecachingdatabase+17
C
216.4 MB
0
详情
FFmpeg/FFmpeg avatar
FFmpegFFmpeg
2 小时前
67.4k
12.7k
0

https://git.ffmpeg.org/ffmpeg.git 的镜像

audiocffmpeg+12
C
496.8 MB
0
详情
git/git avatar
gitgit
15 小时前
64.3k
28.8k
416

Git 源代码镜像 - 这是一个仅用于发布的仓库,但可以通过 GitGitGadget(https://gitgitgadget.github.io/)将拉取请求转换为邮件列表的补丁。请遵循 Documentation/SubmittingPatches 流程提交任何改进。

cshellhacktoberfest
C
317.9 MB
0
详情

关于

appsecnetsecopenzitisdktunneltunnel-clienttunnelingtunnelszero-trustzero-trust-networkzero-trust-network-accesszero-trust-proxyzero-trust-securityzerotrustztna
  • Apache License 2.0
  • 63 Stars
  • 47 Forks
  • 9 Watching

简要分析

热度分
166
价值分
47
活跃状态
活跃
GitHub

语言占比

Awk
C
C++
CMake
Dockerfile
Go
Nix
PowerShell
Shell

Release

  • v1.22.13 天前
  • v1.22.01 周前
  • v1.20.03 周前
  • v1.19.19月17日
  • v1.19.09月15日

贡献者

scareythingscareythingekobyekobyqrkourierqrkourierdovholuknfdovholuknfmary-dcoutomary-dcoutosabedevopssabedevopssmilindave26smilindave26dependabot[bot]dependabot[bot]CLBRITTON2CLBRITTON2tomc-xsectomc-xseckiriwalawrenkiriwalawrenNicFragaleNicFragale

Apache 2.0 Latest Release Build Status

Ziti Tunneler SDK

The Ziti Tunneler SDK provides protocol translation and other common functions that are useful to Ziti Tunnelers.

What’s a Ziti Tunneler?

The main article about tunnelers is here. Editors may follow the “Edit this page” link on every page.

What is the Ziti Tunneler SDK?

The Ziti Tunneler SDK provides functionality that is common to Ziti Tunnelers across supported operating systems:

  • Converse with TCP/IP peers
  • Map TCP/IP connections to Ziti sessions
  • Respond to DNS queries for Ziti service hostnames

A Ziti Tunneler application that uses the Ziti Tunneler SDK only needs to implement platform-specific functionality, such as creating a virtual network interface, and providing a user interface.

A set of callback functions that interact with the specific ziti-sdk that the application uses (e.g. ziti-sdk-c, ziti-sdk-go).

The Ziti Tunneler SDK includes an implementation of the required callback functions for ziti-sdk-c. Here’s how a minimal tunneler application written in C could use the Ziti Tunneler SDK:

int main(int argc, char *argv[]) {
    uv_loop_t *nf_loop = uv_default_loop();
    netif_driver tun = tun_open(NULL, 0); /* open a tun device, and */

    if (tun == NULL) {
        fprintf(stderr, "failed to open network interface: %s\n", tun_error);
        return 1;
    }

    tunneler_sdk_options tunneler_opts = {
            .netif_driver = tun,
            .ziti_dial = ziti_sdk_c_dial,
            .ziti_close = ziti_sdk_c_close,
            .ziti_write = ziti_sdk_c_write
    };
    tunneler_context TUNNEL_CTX = NF_tunneler_init(&tunneler_opts, nf_loop);

    nf_options opts = {
            .init_cb = on_nf_init,
            .config = argv[1],
            .service_cb = on_service,
            .ctx = TUNNEL_CTX, /* this is passed to the service_cb */
            .refresh_interval = 10,
            .config_types = cfg_types,
    };

    if (NF_init_opts(&opts, nf_loop, NULL) != 0) {
        fprintf(stderr, "failed to initialize ziti\n");
        return 1;
    }

    if (uv_run(nf_loop, UV_RUN_DEFAULT) != 0) {
        fprintf(stderr, "failed to run event loop\n");
        exit(1);
    }

    free(TUNNEL_CTX);
    return 0;
}

Once the Ziti Tunneler SDK is initialized with a network device and ziti-sdk callbacks, a tunneler application only needs to indicate which service(s) that should be

Run with Docker

Refer to the Docker README for instructions to run ziti-edge-tunnel with Docker.

Multi-Platform Linux Crossbuild Container

Refer to the BUILD article for instructions to build ziti-edge-tunnel, including the crossbuild container image.

评论

登录 后发表评论
暂无评论
GitRead 中文社区
深度解读 · 趋势洞察 · 价值精选

关于

关于我们联系我们编辑准则收录标准赞赏人员

发现

技术趋势新手训练营资源精选实战指南精选专题热门话题GitHub 文档

条款

隐私政策服务条款网站地图
26.9万收录项目
7.9万中文话题
157精选专题
发现技术价值,连接开源智慧
© 2026 GitRead · GitHub 中文社区 本站与 GitHub, Inc. 无隶属关系;GitHub 是 GitHub, Inc. 的商标。