Killing a thread while deleting an object

Posted by viswanathan on Stack Overflow See other posts from Stack Overflow or by viswanathan
Published on 2010-05-13T04:40:37Z Indexed on 2010/05/13 4:44 UTC
Read the original article Hit count: 144

Filed under:
|

I have an application which does some socket communication with some hardwares. Assume for the particular hardware i have an object and this object intiates a thread which listens on a particular port number say 5001 infinitely until a connection is established.

Now if i delete this obect is there anyway by which i can ensure that the thread that is listening on port number 5001 infinitely also gets destroyed.

© Stack Overflow or respective owner

Related posts about sockets

Related posts about c++