Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java API for network status  RSS feed

Jane Green
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there:
Hello, everybody. I am new to the forum. I am trying to make an instant messenger and one of the features that I want to have is when the network connection is lost, automatically logout the client, and when the connection comes back, automatically login the previous client. In order to do that, I need an API to tell whether the network connection is off or on. Does anybody know if there's such an API in Java? Or if you have code to perform such function, I'd appreciate if you can post it.
Thanks a lot.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!