• Post Reply Bookmark Topic Watch Topic
  • New Topic

how do i cancel a connection right away

 
Lion Z. Li
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Here I got a basic question. Suppose there is a connection being stuck while connecting in a thread, How do i cancel this connection immediately at will?
thanks
 
zhu Bao ding
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
first :you should stop the thread
second : close the input or output stream
that's ok
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!