Search EggHeadCafe's Job Board
EggHeadCafe Silverlight WPF ASP.NET VB.NET C# Excel SQL Server SharePoint
search
MicrosoftArticlesForumsFAQs
C# .NET
VB.NET
Visual Studio .NET
ADO.NET
Xml / Xslt
VB 6.0
.NET CF
GDI+
LINQ
Deployment
Security
FoxPro
Silverlight / WPF
Entity Framework
RIA Services

WebArticlesForumsFAQs
JavaScript
ASP
ASP.NET
WCF

DatabasesArticlesForumsFAQs
SQL Server
Access
Oracle
MySQL
Other Databases

OfficeArticlesForumsFAQs
Excel
Word
Powerpoint
Outlook
Publisher
Money

Non-MicrosoftArticlesForumsFAQs
NHibernate
Perl
PHP
Ruby
Java
Linux / Unix
Apple
Open Source

Operating SysArticlesForumsFAQs
Windows 7
Windows Server
Windows Vista
Windows XP
Windows Update
MAC
Linux / UNIX

Server PlatformsArticlesForumsFAQs
BizTalk
Site Server
Exhange Server
IIS

Graphic DesignArticlesForumsFAQs
Macromedia Flash
Adobe PhotoShop
Expression Blend
Expression Design
Expression Web

OtherArticlesForumsFAQs
Lounge
Subversion / CVS
Ask Dr. Dotnetsky
Active Directory
Networking
Uninstall Virus
Job Openings
Product Reviews
Search Engines
Resumes

 

  View Other C# .NET Posts   Ask New Question  Ask New Question With Power Editor

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

Reply    Reply Using Power Editor
  Rank Winnings Points
November 0 $0.00 0
October 0 $0.00 0
re
Web star replied to Dan Ricafort on 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    Reply Using Power Editor
  Rank Winnings Points
November 5 $55.00 143
October 10 $28.00 94

reply
Dan Ricafort replied to Web star on 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?

 

Reply    Reply Using Power Editor
  Rank Winnings Points
November 0 $0.00 0
October 0 $0.00 0

re
Web star provided a rated reply to Dan Ricafort on Tuesday, November 18, 2008 2:22 AM

just a frequent reconnection is better option
Reply    Reply Using Power Editor
  Rank Winnings Points
November 5 $55.00 143
October 10 $28.00 94

reply
Dan Ricafort replied to Web star on Tuesday, November 18, 2008 2:44 AM

Thank you for the suggestion.
Reply    Reply Using Power Editor
  Rank Winnings Points
November 0 $0.00 0
October 0 $0.00 0