Hi, sorry for such a simple question...<br>I had written some interface code in C using openAMQ - but I&#39;ve now realised that looks like its been canned - so I&#39;m looking at porting to something else...<br><br>I can get my head around putting stuff into the exchanges/queues etc<i> </i>(amq_basic_publish) from this code :�<div>
<br></div><div><br></div><div>� char *messagebody=&quot;Hello World&quot;;</div><div>� ...</div><div><div>� � amqp_basic_properties_t props;</div><div>� � props._flags = AMQP_BASIC_CONTENT_TYPE_FLAG | AMQP_BASIC_DELIVERY_MODE_FLAG;</div>
<div>� � props.content_type = amqp_cstring_bytes(&quot;text/plain&quot;);</div><div>� � props.delivery_mode = 2; /* persistent delivery mode */</div><div>� � die_on_error(amqp_basic_publish(conn,</div><div>� � � � � � � � � � � � � � � � � � 1,</div>
<div>� � � � � � � � � � � � � � � � � � amqp_cstring_bytes(exchange),</div><div>� � � � � � � � � � � � � � � � � � amqp_cstring_bytes(routingkey),</div><div>� � � � � � � � � � � � � � � � � � 0,</div><div>� � � � � � � � � � � � � � � � � � 0,</div>
<div>� � � � � � � � � � � � � � � � � � &amp;props,</div><div>� � � � � � � � � � � � � � � � � � amqp_cstring_bytes(messagebody)),</div><div>� � � � � � � � �&quot;Publishing&quot;);</div></div><div><br></div><div><br></div>
<div>but pulling data off is escaping me atm..<br>
<br>Whats the **simplest way** of getting that data, as a full string I can then process ?<div>(All the examples seem to do strange things with frames/frame headers etc) ..</div><div><br></div><div>Ideally - I want to replace my existing :�</div>
<div><br></div><div>#define�BUFFSIZE 10000</div><div>�char message_text[BUFFSIZE];</div><div><br></div><div>�content = amq_client_session_basic_arrived (session);</div><div><div>�message_size = amq_content_basic_get_body (content,</div>
<div>� � � � � � � � � � � � � � � � � � � � � � �(byte *)</div><div>� � � � � � � � � � � � � � � � � � � � � � �message_text,</div><div>� � � � � � � � � � � � � � � � � � � � � � �sizeof (message_text));</div></div><div>
<br></div><div><br></div><div><br></div><div>and - so far I&#39;ve only got as far as :�</div><div><br></div><div><div>� �#define�BUFFSIZE 10000</div><div>� �char message_text[BUFFSIZE];</div></div><div><br></div><div><div>
� �amqp_simple_wait_frame(conn, &amp;frame);</div></div><div><br></div><div><br></div><div>;)</div><div><br></div><div><br></div><div><br></div><div>Any help, or pointers to some documentation would be much appreciated !
</div></div>