I’m trying to attribute an already created socket to a particular thread on the windows platform.
I’m trying to do this without debug APIs and stack traces. It may come down to diverting the ws2_32 library calls.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can’t; Windows does not keep track of this information. Sockets (and all kernel objects) are created by processes without regard for which thread created them. GDI objects have thread affinity, but kernel objects don’t.