Azure / azure-c-shared-utility

Azure C SDKs common code
Other
111 stars 203 forks source link

How to port ”xio http proxy” in C-SDK #598

Closed grapesato closed 2 years ago

grapesato commented 2 years ago

I have the following three questions about how to port the "xio http proxy" in the C-SDK.

(1) We recognize that in order to support HTTPS communication with C-SDK, the configuration is as follows. Is it correct?

How to Port the Azure IoT C SDK to Other Platforms https://github.com/Azure/azure-c-shared-utility/blob/master/devdoc/porting_guide.md

"Socket adapter overview"

[SDK] --- [tlsio] --- [xls http proxy] --- [socketio] --- (Indirect tlsio vir xio http proxy)

(2) If so, do we need to port the "xio http proxy" part?

(3) The porting guide doesn't seem to provide instructions on how to port the "xio http proxy" part, so would you please let me know if you have any other information on how to port the "xio http proxy" part?

danewalton commented 2 years ago

The only reason you would need to port the HTTP proxy layer is if you wanted to substitute your own version of the proxy in. If not, it should with the other layers of your choice.

grapesato commented 2 years ago

Thank you for your reply.

Let me check it again.

Is the "xio http proxy" part already present and is it in the C-SDK? And if we don't need any special features and just use them, don't we need to port?

danewalton commented 2 years ago

Do you have any details on your intended platform? You should be able to just compile it in as an option.

ericwolz commented 2 years ago

I'm closing this issue due to lack of activity. If you have further questions, please feel free to reopen this issue.