Hi! I am creating an app similar to Windows desktop client but using Flutter(also have to support iOS and Android). Since Zity has specific SDKs for Swift and Android, the choice ther was quite straightforward. But for Windows I am not quite sure which sdk should I use: ziti-tunnel-sdk-c or ziti-sdk-c? Can you help me make the correct choice?
hi @Icristea, I'd say the closest thing to those sdks is the ziti-sdk-c. The ziti-tunneler-sdk-c is specifically designed for taking underlay traffic and sending it over ziti. If you're trying to make your own tunneler, that might be a better choice but it sounds like you'd be better off starting with teh ziti-sdk-c to me. Let us know if you have other questoins.
Ziti C-sdk is the one you want. Let us know how it goes!
Of course, ideally, openziti would provide a ziti Dart module to make Flutter development easier.
Thanks for your answers. I have this error when try to compile project after I added SDK
Launching lib\main.dart on Windows in debug mode...
project version: 0.36.10
git info:
branch : HEAD
hash : 56dd6f9
date :
using Visual Studio 17 2022
cross-compiling FALSE
Project: tlsuv@v0.28.4
zip program not found
sodium is C:/Users/icristea/vcpkg/installed/x64-windows/lib/libsodium.lib
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\uxtheme.h(1012,11): error C2061: syntax error: identifier 'LOGFONTW' [C:\Users\icristea\AndroidStudioProjects\app\build\windows\x64\runner\ziti_app.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\uxtheme.h(1276,11): error C2061: syntax error: identifier 'LOGFONTW' [C:\Users\icristea\AndroidStudioProjects\app\build\windows\x64\runner\ziti_app.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\uxtheme.h(1817,25): error C2143: syntax error: missing ';' before '*' [C:\Users\icristea\AndroidStudioProjects\app\build\windows\x64\runner\ziti_app.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\uxtheme.h(1817,47): error C2238: unexpected token(s) preceding ';' [C:\Users\icristea\AndroidStudioProjects\app\build\windows\x64\runner\ziti_app.vcxproj]
C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\uxtheme.h(1885,11): error C2061: syntax error: identifier 'RGBQUAD' [C:\Users\icristea\AndroidStudioProjects\app\build\windows\x64\runner\ziti_app.vcxproj]
Error: Build process failed.
@ekoby Are there compatibility issues between ziti SDK and windows ?
these errors do not come from Ziti sdk build so I can't comment on that.
I think the easiest way forward is to use precompiled ziti sdk bundle from github and use dart:ffi
to load it and call the functions you need from ziti/zitilib.h
we use this approach in our Python SDK: zitilib.py
I need just .dll file from the archive?
Yes, FFI module does the rest, you just need to look up available functions from the header file
Ok. Thank you. I will try this.