Getting started with http tunneling

Soon I will start working on software that runs on different machines and communicates over the network. I would like the message to occur using HTTP tunneling, so the user does not need to open the firewall ports.

This software will be written in C ++. My problem is that I donโ€™t know where to start looking for resources related to the implementation of HTTP tunneling.

I believe I could use WCF for this - does that sound like a good idea? Any pros and cons of this route?

+2
source share
1 answer

The advantage of using something like WCF is that the "passing" anomalies of some routers are handled for you. I am talking about checking deep packets that some routers that will identify the material that you send as โ€œinappropriateโ€ if it does not look like pure HTML.

On the other hand, working with WCF in C ++ can be interesting. Presumably this means that you are ready to write code as C ++ / CLI.

However, I think you will find that choosing a network infrastructure is less of a problem. Moreso network management logic will consume your time. If you are performing any kind of asynchronous network communication, make sure that you are well educated with a good government structure . Also pay attention to the C # port .

ps If you are not using managed clients with WCF, just remember that your messages must be serialized with XML properties / attributes in alphabetical order. Otherwise, you will receive unexplained errors. If I remember, zeros should be sent explicitly.

0
source

Source: https://habr.com/ru/post/1336769/


All Articles