-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Any hints on how to use the TCP API? #73
Comments
You're right, there's no documentation for the TCP API yet. I created it to work with the pg_onnx project, I didn't think anyone would use it. onnxruntime-server/src/transport/tcp/tcp_server.hpp Lines 21 to 26 in c2b2141
The structure of the protocol headers. The header contains the kind of operation you are requesting, the length of the entire request (JSON+POST), the length of the JSON data, and the length of the POST data (non-JSON data). The types of operations are defined here. onnxruntime-server/src/onnxruntime_server.hpp Lines 181 to 187 in c2b2141
After the header, you can send JSON data and after that POST data. Attach some of the E2E test code. onnxruntime-server/src/test/e2e/e2e_test_tcp_server.cpp Lines 16 to 27 in c2b2141
Have a great holiday season! 🥳 |
Thank you! I will try it after the holidays. And I will leave the issue open for you to decide if you want to close it now or when there is documentation. |
Hi,
The TCP API seems to be not documented (yet). Any hints, or simple example on how to use it? I would like to use onnxruntimer-server for serving silero VAD and using it via TCP api.
Thanks you!
The text was updated successfully, but these errors were encountered: