Having a small problem, after I copyover, I am not able to have new connections made, they hang. I know the bit of code that is being affected. I used log strings inside of accept_new, and I've determined that is the offending code, apparently it's true before a copyover, but not after. Does anyone know whats going on with that if check? Whats it checking for? I THINK thats its seeing if a route for incoming data from the new descriptor has been established, and it is before a copyovr, but not after. I went and read the back posts, and this exact problem has occured before. Now, problem seems to be because I am running two different ports, my main and my coding. After I copyover, the value for control is the same on both ports, and if I understand correctly, that should be what the problem is. Should you not be able to re-assign the control based on the passed port? Why do you not want to call init_socket after a copyover?
if ( FD_ISSET( ctrl, &in_set ) )
{
newdesc = ctrl;
new_descriptor( newdesc );
}