networking - Qt. How to send multiple simultaneous requests from multiple proxy servers -


i have list of accounts in format login:password , list of proxies ip:port. task authorize account , verify of characteristics. simple if have 1 connection.

by sounds if able send, example, 5 requests (post) proxies a, b, c, d, e @ same time. than, if of them replied can send request (get) same proxies. if of them replies can check content of reply. when requests replied select new proxies , repeat process until accounts checked.

so want implement multithreading queries.

i using qt 5.1.

how can implement this? read, study?

thank you.

( sorry english(: )

qnetworkaccessmanager supports multiple concurrent requests, there's no need use multithreading directly unless makes things easier on end.

to track multiple subsequent requests belonging each other, i'd suggest use command pattern group them: each flow of communication 1 of proxies managed job object.

see other answer describe why find command pattern useful, in similar context.


Comments