Share via

Server - Socket to receive XML messages

Noah Aas 1,210 Reputation points
2025-04-23T15:16:05.58+00:00

I'm looking for a good server in a dialog-based MFC application that will send me a request.

Does anyone know a good example? The request comes from the client based on the event.

The server sends the response or timeout within 20 seconds.

Like this.

<ROOT>
  <book id="bk101">   
      <author>Gambardella, Matthew</author>
      <title>XML Developer's Guide</title>       
      <Computer attri1="Test" attri2="6.4Eur" />
      <price>44.95</price> 
      <publish_date>2000-10-01</publish_date> 
   </book>
</ROOT>

The server must read until the message is complete.
<ROOT> .... </ROOT>

Request from Client to Server

Response Server to Client.

good or bad result.

<ROOT>  
   <Result good="false"/>
</ROOT>

<ROOT>
  <Result good="true" Percent="100"/>
</ROOT>

Developer technologies | C++
Developer technologies | C++

A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.

0 comments No comments

Answer accepted by question author
  1. Bruce (SqlWork.com) 83,666 Reputation points
    2025-04-23T16:41:07.68+00:00

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.