I am using mongoose c++ library for my application to see performance.
- My goal is: observe multpart file transfer at same time from 100 users.
- My actions are: I am using example big_upload.c, I have modified as per need but it’s a single thread application. I would like to get multi threaded application which create thread per user transfer or precess parallel with multiple users. I am doing memcpy when file data arrived ,which is expensive/ time consuming job so if I do with multi threaded for each socket connection would help.
- The result I see is: Single thread application slow down quickly.
- My expectation & question is: Not getting clue , how can I make it multi threaded. No such documents found and multithread example doesn’t much help. I am still not getting what mg_broadcast() does in this example? Does it really send broadcast message on network?. Sorry I am from RTL development and new to mongoose so wording makes so difficult to understand. Do you have any multi threaded multipart file transfer example or explanation on how to make it?