1
0
mirror of https://github.com/danog/termux-api.git synced 2025-01-22 21:31:10 +01:00

Update README.md

This commit is contained in:
Fredrik Fornwall 2015-07-26 02:40:28 +02:00
parent c4ef079206
commit 28f2f52ae2

View File

@ -6,12 +6,14 @@ The termux-api client helper binary
===================================
The client helper binary ([termux-api.c](https://github.com/termux/termux-packages/blob/master/packages/termux-api/termux-api.c))
generates two linux anonymous namespace sockets, and passes their address as in:
- /system/bin/am broadcast ${SERVICE_CLASS} --es socket_input ${INPUT_SOCKET} --es socket_output ${OUTPUT_SOCKET}
/system/bin/am broadcast ${SERVICE_CLASS} --es socket_input ${INPUT_SOCKET} --es socket_output ${OUTPUT_SOCKET}
where the sockets are used to transfer:
- input through stdin to the helper binary are forwarded to java code
- java code may output feedback which are forwarded to the stdout of the helper binary
- input through stdin to the helper binary are forwarded to java code
- java code may output feedback which are forwarded to the stdout of the helper binary
Client scripts
==============
Client scripts which processes command line arguments before calling the termux-api helper binary are available:
- [The termux-api package](https://github.com/termux/termux-packages/tree/master/packages/termux-api)
Client scripts which processes command line arguments before calling the termux-api helper binary are available in [the termux-api package](https://github.com/termux/termux-packages/tree/master/packages/termux-api).