• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Moving Client Socket from One Server to Another

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi There,
I am writing a simple client-server application using Java sockets where client creates socket connection by passing server address and server listening port. The server may be busy/over-loaded during the communication cycle because of serving many clients as the same time. To off-load the burden, I need to move some of connected clients to some other server. One why to do this is to let client know the address of some under-loaded server so that client could establish a new connection by itself. However, the requirement is that the server should not let client (or any proxy running at client side) know about this migration. This is just like moving server side socket connection to some other machine without letting client know this. Any help is appreciated!

Thanks,
Shafique
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A connection is specific to a server. Once established it can't be moved. You can could put a proxy in between to which the client connects, and the proxy can then connect to any server it chooses.
 
Muhammad Shafique
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ulf,
Thanks for your reply. Thats seems the only possible platform dependent solution available.
 
You've gotta fight it! Don't give in! Read this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic