| TCP multi-client continous connection/data exchange |
| Dan Ricafort posted at Tuesday, November 18, 2008 12:54 AM |
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 Dan Ricafort at Tuesday, November 18, 2008 1:03 AM |
u right the connection should be disconnect when request/response was finished because unusual load is bothering . |
 |
| |
| reply |
| Dan Ricafort replied to Web star at Tuesday, November 18, 2008 2: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 Dan Ricafort at Tuesday, November 18, 2008 2:22 AM |
| just a frequent reconnection is better option |
 |
| |
| reply |
| Dan Ricafort replied to Web star at Tuesday, November 18, 2008 2:44 AM |
| Thank you for the suggestion. |
 |
| |
|
|