-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b4baff
commit a2fcd9e
Showing
6 changed files
with
243 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
# macchina.io REMOTE Agent Library (*libWebTunnelAgent*) | ||
|
||
`libWebTunnelAgent` provides a C API for connecting a device to a macchina.io REMOTE server. | ||
This is what the [`WebTunnelAgent`](../WebTunnelAgent/README.md) is doing, | ||
This is what the [`WebTunnelAgent`](../WebTunnelAgent/README.md) program does, | ||
but provided as a library for easy inclusion into applications (not written in C++). | ||
C++ applications can also use the `Poco::WebTunnel::RemotePortForwarder` class | ||
in the `WebTunnel` library. | ||
in the `WebTunnel` library directly. | ||
|
||
Please see the [webtunnelagent.h](include/webtunnelagent.h) header file for | ||
a description of the available types and functions. | ||
|
||
Basic usage: | ||
- `webtunnelagent_init()` must be called before any other functions. | ||
- `webtunnelagent_cleanup()` must be called as last function when the library | ||
- `webtunnel_agent_init()` must be called before any other functions. | ||
- `webtunnel_agent_cleanup()` must be called as last function when the library | ||
is no longer used in the program, to clean up internal state and resources. | ||
- `webtunnelagent_create()` is used to create a connection from to a macchina.io REMOTE server. | ||
- `webtunnelagent_destroy()` stops the local TCP server for the tunnel connection. | ||
- `webtunnel_agent_configure_timeouts()` and `webtunnel_agent_configure_tls()` are used | ||
for basic configuration of connection timeouts and TLS parameters. | ||
- `webtunnel_agent_create()` is used to create a tunnel from the device to a macchina.io REMOTE server. | ||
- `webtunnel_agent_destroy()` stops the local TCP server for the tunnel connection. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.