In the application that I inherited I was told that I had to convert the application from a one port one connection application to a multiple connection application. I'm very new to socket programming and could really use some help in tackling this issue. Unfortunately, there are no other people on my team and I'm still trying to rifle through this code and learn the application.
Here is my code issue. I have a run() that calls a connect() in the same class but I have to be able to execute the rest of the run() code after EACH connection is made and verify that the activeSocket is still in the activeSockets list before making that connection in the connect(). Currently, the code is setup to get ALL the connections in the maxActiveSockets list BEFORE moving on in the run() but again, I need to be able to make multiple connections to the app up to the number of maxActiveSockets and process each connection separately. I hope this makes sense.
Any help/direction would be appreciated. Thank you.