Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8053579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:53:39+00:00 2026-06-05T07:53:39+00:00

Currently I am working on a multi-process desktop application on Windows. This application will

  • 0

Currently I am working on a multi-process desktop application on Windows. This application will be a shrink wrapped application which will be deployed on client machines across the world. While we can have broad specifications for the machines – e.g. Windows XP SP3 with .Net 4.0 CF, we wont have control over them and we cant be too specific on their configuration – e.g. we cannot specify the machine must have a cuda 1.4 capable graphic processor etc.

Some of these processes are managed (.Net 4.0) and others are unmanaged (C++ Win32). The processes need to share data. The options I have evaluated to date are

  • Tcp sockets
  • Named Pipes

Pipes seem to perform a little better, but for our needs – performance from both are acceptable. And sockets give us the flexibility of crossing machine (and operating systems – we would like to support non-Microsoft OSes eventually) boundaries in the future hence our preference for going with sockets.

However – my major concern is this – If we use Tcp sockets – are we likely to run into issues with firewalls? Has anyone else deployed desktop applications / programs that use TCP for IPC and experienced issues? If so – what kind?

I know this is a fairly open ended question and I will be glad to rephrase. But I would really like to know what kind of potential problems we are likely to run into.

edit: To throw a little more light – we are only transporting a few PODs, ints, floats and strings. We have built a layer of abstraction that offers 2 paradigms – a request/response and subscription . The transport layer has been abstracted away and currently we have two implementations – pipe based and TCP based.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T07:53:44+00:00Added an answer on June 5, 2026 at 7:53 am

    Performance of pipes is often better on a fast LAN but TCP is often better on slower networks or WANs. See msdn points below.

    TPC is also more configurable. Concerning firewalls, they allow you to open/close communication ports. If that’s not an option or a concern, an alternative would be http (REST/json, web service, xml rpc, etc…) but you have to consider if the http overhead is acceptable. Make sure you try it with real world datasets (passing trivial data in a test makes the overhead seem unreasonable, which would be very reasonable with a real world data set).

    Some other info from msdn:

    In a fast local area network (LAN) environment, Transmission Control
    Protocol/Internet Protocol (TCP/IP) Sockets and Named Pipes clients
    are comparable in terms of performance. However, the performance
    difference between the TCP/IP Sockets and Named Pipes clients becomes
    apparent with slower networks, such as across wide area networks
    (WANs) or dial-up networks. This is because of the different ways the
    interprocess communication (IPC) mechanisms communicate between peers.

    For named pipes, network communications are typically more
    interactive. A peer does not send data until another peer asks for it
    using a read command. A network read typically involves a series of
    peek named pipes messages before it begins to read the data. These can
    be very costly in a slow network and cause excessive network traffic,
    which in turn affects other network clients.

    It is also important to clarify if you are talking about local pipes
    or network pipes. If the server application is running locally on the
    computer running an instance of Microsoft® SQL Server™ 2000, the local
    Named Pipes protocol is an option. Local named pipes runs in kernel
    mode and is extremely fast.

    For TCP/IP Sockets, data transmissions are more streamlined and have
    less overhead. Data transmissions can also take advantage of TCP/IP
    Sockets performance enhancement mechanisms such as windowing, delayed
    acknowledgements, and so on, which can be very beneficial in a slow
    network. Depending on the type of applications, such performance
    differences can be significant.

    TCP/IP Sockets also support a backlog queue, which can provide a
    limited smoothing effect compared to named pipes that may lead to pipe
    busy errors when you are attempting to connect to SQL Server.

    > In general, sockets are preferred in a slow LAN, WAN, or dial-up
    network, whereas named pipes can be a better choice when network speed
    is not the issue, as it offers more functionality, ease of use, and
    configuration options.

    For more information about TCP/IP, see the Microsoft Windows NT®
    documentation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working on a multi-threaded application that would be deployed on arm and
I'm currently working on a multi-threaded application, and I occasionally receive a concurrently modification
I am currently working on a multi branch desktop based project using VB.NET 2008.
Am currently working on a web application which receives the encoded text from the
I'm currently working on a multi-tenant application that employs Shared DB/Shared Schema approach. IOW,
I'm currently working on a Sudoku application, the numbers are stored within a Multi-Dimensional
I'm currently working on a SaaS type application, and for multi-tenancy I've settled on
I have a multi-threaded Delphi 6 Pro application that I am currently working on
I am currently working on a project which supports multi-language. I have created a
I'm working on a multi-threaded C# Windows application that makes frequent calls into a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.