Reputation: 674
I need some advice... I'm building a desktop application where every window needs constant input from the user (events like click, typing, mouse move) to be sent to the server. The server also sends constant feedback like (refresh some data in the dialog, text, new objects, etc)
First I thought I would use HTTP, but now choose to use plain TCP.
My question is: Should I use one TCP connection and handle all info from the server at "Application Layer", or should I create multiple connections (like one for each window and let the OS handle the multiple TCP pipes) ?
I can programming any of these 2 ideas, but who would be more efficient in terms of performance and bandwidth?
Upvotes: 2
Views: 1339
Reputation: 17176
This depends too much on your specific application, but where possible I'd pick multiple connections, it has multiple advantages:
The only reasons why you wouldn't want to do this:
Upvotes: 1