13 struct msqid_ds minfo;
14 for (msgctl(dev.que_id, IPC_STAT, &minfo); minfo.msg_qnum;
15 msgctl(dev.que_id, IPC_STAT, &minfo))
17 std::cout << "Quedan " << minfo.msg_qnum << " mensajes en la cola\n";
18 std::string s = dev.receive();
19 std::cout << "Recibido '" << s << "' (len " << s.size() << ")\n";
24 // vim: set et sw=4 sts=4 :