This call;
int_flag=_beginthreadex(NULL, 0, Object_server::accept_thread, (void *)this, CREATE_SUSPENDED, &threadID);
Creates the accept thread in
suspended state, you'll either have to start the thread manually by calling
ResumeThread
after that or, change the
CREATE_SUSPENDED
to
0
, like this;
int_flag=_beginthreadex(NULL, 0, Object_server::accept_thread, (void *)this, 0, &threadID);
That should at least start your accept thread and you will see the
cout
prints from the server.
Hope this helps,
/Fredrik