TCP multi-client continous connection/data exchange

Asked By dantz
18-Nov-08 12:54 AM
Earn up to 0 extra points for answering this tough question.

Hi,

I am wondering how should I implement my multi client-server application.

When the connection of a client is established with the server and the

exchange was done, can I just retain the connection until the client initiates to disconnect?

Or just disconnect whenever a request/response was finished then establish a new connection again if it is needed

I am just concerned that if the connection will be continous it may be not a good choice because of network issues (bandwidth,security or anything) or client machine issues (memory,local resource or anything)

I hope anyone can help me on this.

 

TIA- Dan

  re

Web Star replied to dantz
18-Nov-08 01:03 AM

u right the connection should be disconnect when request/response was finished because unusual load is bothering .

  reply

dantz replied to Web Star
18-Nov-08 02:02 AM

thanks lalji

thanks for the comment arvind.

The link was very helpful, that can help me implement it.

But I still need some suggestions on which is better:

continously alive connection or just a frequent reconnection?

how does multi player games implement it?

does anyone have an idea? does the connection always alive until the game finish?

 

  re

Web Star replied to dantz
18-Nov-08 02:22 AM
just a frequent reconnection is better option
  reply
dantz replied to Web Star
18-Nov-08 02:44 AM
Thank you for the suggestion.
Create New Account