Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Client / Server

 
Kudret Serin
Ranch Hand
Posts: 167
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have a client/server application. The server serves to several clients at the same time. A client can close the connection with a special command. But i want that the connection is closed automatically by server when a client is not active for 10 second is.
How can i implement this?
Any help would be appreciated.
Cheers
 
Wagner Danda Da Silva Filho
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you using as protocol? Sockets, RMI?

If sockets, you can set a timeout and force your client to disconect. See this article: http://www.javacoffeebreak.com/articles/network_timeouts/
[ October 25, 2005: Message edited by: Wagner Danda ]
 
Kudret Serin
Ranch Hand
Posts: 167
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That is it! Thanks a lot Wagner.
Cheers
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic