Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ServerSocket - setSoTimeout  RSS feed

 
vsshiva
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I set 20 sec timeout for a ServerSocket using setSoTimeout method, Now the ServerSocket in accept() stage, before 20 sec timeout, I want to come out of the accept state.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!