Create a reverse proxy client using an open port on the device.
This is used during firmware restores with the default port REVERSE_PROXY_DEFAULT_PORT (1082).
- Note
- This function only creates and initializes the reverse proxy; to make it operational, call reverse_proxy_client_start_proxy().
- Parameters
-
device | The device to connect to. |
client | Pointer that will be set to a newly allocated reverse_proxy_client_t upon successful return. |
device_port | An open port on the device. Unless it's being used for a custom implementation, pass REVERSE_PROXY_DEFAULT_PORT here. |
- Returns
- REVERSE_PROXY_E_SUCCESS on success, or a REVERSE_PROXY_E_* error code otherwise.