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

Socket Client: How to handle FIN when establishing connection?  RSS feed

Michael Lawrence
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello. I am trying to create a client socket app to connect to a third party service. One of the validation tests that they perform is to see if I can handle a FIN right after establishing the connection. So, I create a new socket, the connection is established and then they send a FIN. I have searched online, but can't figure out any way to check whether or not I have received a FIN. I assumed that the socket would through an exception at some point, but it still seems to think that it has a valid connection.

Any help would be really appreciated.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!