Full Duplex Communication / Sample / C++/MFC
Markus Freitag
3,791
Reputation points
Hello!
There must be a good example of Socket, Tcp/Ipthat does the following.
- Duplex operation between client and server
- Automatic reconnection
- On 10 failed attempts, error message.
- Read until the root element is received.
- Read until the element root has been received, if necessary buffer it in a processing list and process it bit by bit
Send from Server to Client or the other way around.
<ROOT>
<REQUEST>
<VARIANT name="TEST01022034">
<PROGRAM name="87.1554.0_87.1554.0" />
</VARIANT>
<VARIANT name="TEST01022023">
<PROGRAM name="99.884.0_M" />
<PROGRAM name="99.884.0_MR" />
<PROGRAM name="AAA_AAAAA" />
<PROGRAM name="BBB_AAAAA" />
</VARIANT>
</REQUEST>
</ROOT>
Send from Client to Server or the other way around.
<ROOT>
<RESPONSE>
<CURRENT name="TEST01022034">
<PRODUCT name="Washing_machine_99.8854.0_99.8854.0" />
</CURRENT>
</RESPONSE>
</ROOT>
There are many small examples, 1000 variants. Is there a good working example for this use case? Thank you in advance for your help.
C++ / MFC // VS2017/2019
Developer technologies | C++
3,977 questions
Sign in to answer