When I try to create a socket from a thread, the IP_ADD_MEMBERSHIP is success. When I try to close the socket from a different thread , I get a result IP_DROP_MEMBERSHIP failed. Is it because the socket that was created from a thread, cannot be deleted from a different thread.