Home > Back-end >  C Builder ActiveMQ client development
C Builder ActiveMQ client development

Time:09-25

Development language used c + + builder,
The background use ActiveMQ transmission signal; Signaling message in XML format, use the character set GBK code, using the MQ queue mode to realize the messaging,
Message types: login (login), logout (cancelled), the config information (configuration), black (1), alarm (2) business, traffic (3),

Message format
<? The XML version="1.0" encoding="GBK"?>
<- inclusions - & gt;
<- baotou area - & gt;
1.00 & lt;/Version> <- the version number & gt;
<- the message type logon, logout, config, traffic - & gt;

<- data domain - & gt;


Service address example: failover://TCP://localhost: 61616

Example:
1, log in to register
To send data format
<? The XML version="1.0" encoding="GBK"?>


1.00 & lt;/Version>
Logon


No. & lt;/KKBH>
Login password & lt;/DLMM>



2. Login failed to reply
<? The XML version="1.0" encoding="GBK"?>


1.00 & lt;/Version>
Logon


Code & lt;/Code>
The content & lt;/Message & gt;



Please help to write the corresponding code, thank you,



CodePudding user response:

Tall person online, etc., please feel free to comment, you just need to provide login and get back to pieces of information is good,

CodePudding user response:

Tall person online, etc., please feel free to comment, you just need to provide login and get back to pieces of information is good,

CodePudding user response:

Didn't understand, you is to parse an XML file?
  • Related