Quantcast
Channel: How to concurrently send data to multiple servers using C++ socket programming? - Stack Overflow
Browsing all 3 articles
Browse latest View live

Answer by Zack R. for How to concurrently send data to multiple servers using...

You aren't joining or detaching the threads causing the program to exit with errors. Store the threads in an array so you can join them or call detach in your loop.

View Article


Answer by Mouze for How to concurrently send data to multiple servers using...

Not sure this is the only problem, but given what you shared, the main thread is not waiting for the worker threads to finish their tasks.Per this answer: When the main thread exits, do other threads...

View Article

How to concurrently send data to multiple servers using C++ socket programming?

I deployed one program onto several servers (suppose the server IPs and the ports providing the service are 192.168.1.101:10001, 192.168.1.102:10001, 192.168.1.103:10001, 192.168.1.104:10001). They are...

View Article
Browsing all 3 articles
Browse latest View live