I have a button on click starts Listening to the Socket. So i used Threads to invoke the Socket Listen Process.
User selects the socket from Gridview and On click of button the Socket starts listening Using thread . But i want to stop the socket listening process so i want to abort the thread it aborts the latest thread created. How to abort particlur thread
with is associated with the socket its listening
heres the code
Dim SocketThread as Thread
SocketThread=New Thread(AddressOf StartListeningSocket)
So on user starts some 10 ports Example 5100,5200,.....5111
So when thread aborts it aborts port listening process for 5111
How can i abort particularly some port? is there any uniqueness ?
Please share code also.
Thanks Avinash Desai
View Complete Post