fork download
  1. if (reliable)
  2. {
  3. out->Write(out_reliable.size());
  4. while(out_reliable.size()>0)
  5. {
  6. AppFrame::actions::Message* msg = out_reliable[0];
  7.  
  8. if (message_map.find(msg->getID()) != message_map.end())
  9. {
  10. int creator_id = message_map[msg->getID()];
  11. out->Write(creator_id);
  12. msg->serialize(out);
  13. }
  14. delete msg;
  15. out_reliable.erase(out_reliable.begin());
  16. }
  17. } else
  18. {
  19. out->Write(out_unreliable.size());
  20. while(out_unreliable.size()>0)
  21. {
  22. AppFrame::actions::Message* msg = out_unreliable[0];
  23.  
  24. if (message_map.find(msg->getID()) != message_map.end())
  25. {
  26. int creator_id = message_map[msg->getID()];
  27. out->Write(creator_id);
  28. msg->serialize(out);
  29. }
  30. delete msg;
  31. out_unreliable.erase(out_unreliable.begin());
  32. }
  33. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty