473,385 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

C#-APP: TCP multi-client continous connection/data exchange

71
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
Nov 18 '08 #1
2 2975
Plater
7,872 Expert 4TB
I think it more depends on your requirements.
There is a bit of processing overhead to connect and disconnect sockets. BUT if more time is spent being idle(not transfering data) then not being idle, it might be better to disconnect.
But, you would also want to consider, do you need to validate a user? Like username/password/account info/etc? If so you would probably need to do that for EVERY connection, that could be a lot of extra data.

Just things to consider
Nov 18 '08 #2
dantz
71
Thank you very much.
I think that clarifies a lot.

It was very helpful. :)
Nov 19 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Julie | last post by:
Good evening, A small email to know if among you there are some persons who were already interested in the standards of data exchange in XML. Indeed, I am at the moment in training where I have...
0
by: Bruno Georges | last post by:
Hi I would like to know if there are existing XML standards for data exchange between laboratories and trading companies. For example when a a trader buy COAL, there are some analysis done to...
0
by: Vinay Chopra | last post by:
Hi, Did anybody worked on DDE(Dynamic Data Exchange)? Can someone come with a code piece for implementation of DDE in Microsoft technologies. Thanks, Vinay
5
by: -00Eric Clapton | last post by:
What is Microsoft solution for the data exchange between different platform with XML? Thanks.
11
by: Tamir Khason | last post by:
What is the preferred way to exchange data between processes? Example: I have 2 applications (C#) 1) WinForms (A) 2) Command Line (B) Both od them use DataLayer (class library) C A calls to...
1
by: Vinay Chopra | last post by:
Hi, Did anybody worked on DDE(Dynamic Data Exchange)? Can someone come with a code piece for implementation of DDE in Microsoft technologies. Thanks, Vinay
1
by: CV | last post by:
Hello, Could anyone please throw your suggestions on the following scenario? (It would be really helpful if you could provide a solution using ..NET,XSLT,XSD,Web Service other than 'Biztalk...
0
by: Serge Calderara | last post by:
Dear all, I have a class1.vb and a form1.vb belonging to a project compile as a library. This belongs for instance from the assembly MyClass. Form1.vb contain a text box and a button Then...
1
by: sutch | last post by:
I have created a DDE( Dynamic-Data Exchange) Client (Console) application to interact with a legacy DDE Server. This client is working perfectly I am asked to develop same functionality in a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.