Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. PIPES or SOCKETS

PIPES or SOCKETS

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
8 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • I Offline
    I Offline
    IamPoojaa
    wrote on last edited by
    #1

    Hi friends, I am in need to perform InterProcessCommunication. I have gone thru the PIPES and SOCKETS to do the same but unable to decide which one is the best and efficient. Could anybody help me out in understanding which one is more efficient and why? Thanks in advance

    poojaaa

    I M 2 Replies Last reply
    0
    • I IamPoojaa

      Hi friends, I am in need to perform InterProcessCommunication. I have gone thru the PIPES and SOCKETS to do the same but unable to decide which one is the best and efficient. Could anybody help me out in understanding which one is more efficient and why? Thanks in advance

      poojaaa

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      There's too many "depends" here for me to work with. Are the processes on the same PC? In the same building? Is one end an alien spaceship, and you're trying to plant a virus? Are both the same OS? If yes, might that answer change? Iain.

      Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

      CPalliniC J 2 Replies Last reply
      0
      • I Iain Clarke Warrior Programmer

        There's too many "depends" here for me to work with. Are the processes on the same PC? In the same building? Is one end an alien spaceship, and you're trying to plant a virus? Are both the same OS? If yes, might that answer change? Iain.

        Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

        CPalliniC Offline
        CPalliniC Offline
        CPallini
        wrote on last edited by
        #3

        Iain Clarke wrote:

        Is one end an alien spaceship, and you're trying to plant a virus?

        Please stop drinking alchool now. :-D

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

        In testa che avete, signor di Ceprano?

        I 1 Reply Last reply
        0
        • CPalliniC CPallini

          Iain Clarke wrote:

          Is one end an alien spaceship, and you're trying to plant a virus?

          Please stop drinking alchool now. :-D

          If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
          This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

          I Offline
          I Offline
          Iain Clarke Warrior Programmer
          wrote on last edited by
          #4

          9am is early even by my standards. Now, if I reply after lunch... Iain.

          Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

          1 Reply Last reply
          0
          • I Iain Clarke Warrior Programmer

            There's too many "depends" here for me to work with. Are the processes on the same PC? In the same building? Is one end an alien spaceship, and you're trying to plant a virus? Are both the same OS? If yes, might that answer change? Iain.

            Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

            J Offline
            J Offline
            Jhony george
            wrote on last edited by
            #5

            hai..., Atlast, what is the solution for the question...? Please mention all the cases, where we need to use "PIPES" and where we should use "SOCKETS"....

            Born to win...!

            modified on Tuesday, April 22, 2008 6:22 AM

            I CPalliniC 2 Replies Last reply
            0
            • J Jhony george

              hai..., Atlast, what is the solution for the question...? Please mention all the cases, where we need to use "PIPES" and where we should use "SOCKETS"....

              Born to win...!

              modified on Tuesday, April 22, 2008 6:22 AM

              I Offline
              I Offline
              Iain Clarke Warrior Programmer
              wrote on last edited by
              #6

              Manivannan@congruent wrote:

              Please mention all the cases

              No, that's too much hard work for me, and I'm not getting paid for this. If you have a scenario in mind, I may be able to help. It also depends on your skills and previous knowledge. Iain.

              Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

              1 Reply Last reply
              0
              • J Jhony george

                hai..., Atlast, what is the solution for the question...? Please mention all the cases, where we need to use "PIPES" and where we should use "SOCKETS"....

                Born to win...!

                modified on Tuesday, April 22, 2008 6:22 AM

                CPalliniC Offline
                CPalliniC Offline
                CPallini
                wrote on last edited by
                #7

                Manivannan@congruent wrote:

                Please mention all the cases, where we need to use "PIPES" and where we should use "SOCKETS"....

                You have to wait a bit: after lunch he will. :-D

                If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke

                In testa che avete, signor di Ceprano?

                1 Reply Last reply
                0
                • I IamPoojaa

                  Hi friends, I am in need to perform InterProcessCommunication. I have gone thru the PIPES and SOCKETS to do the same but unable to decide which one is the best and efficient. Could anybody help me out in understanding which one is more efficient and why? Thanks in advance

                  poojaaa

                  M Offline
                  M Offline
                  Mark Salsbery
                  wrote on last edited by
                  #8

                  Pipes provide an easier programming interface than sockets. Depending on the situation, a pipe may use sockets as its underlying transport mechanism, so in that case, a pipe may be a little less efficient. Maybe use the one that has the features you need for your application. Or try both and see which is more efficient for you. I would guess the performance difference is minimal. Mark

                  Mark Salsbery Microsoft MVP - Visual C++ :java:

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups