LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to use named pipes on linux network...? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-use-named-pipes-on-linux-network-816089/)

mgnidhi_3july 06-24-2010 04:34 AM

How to use named pipes on linux network...?
 
hi linux gurus...
can anyone tel me how to create and use named pipe on linux network.ie
client - my linux machine
server - my fren's linux machine

how to communicate between these two using named pipe created in C? do u have any similar code snippet written in C??

i got one server client application,its working fine on my machine.So i want enhance that code for networking.so help in this...

ilikejam 06-24-2010 10:06 AM

Hi.

The short answer is: you can't. Named pipes on Unix are purely process to process IPC. No networking allowed.

Use a BSD (TCP/IP) socket instead.

Dave

i92guboj 06-24-2010 10:13 AM

Unless you do the networking stuff in another layer that can present your network shares are regular elements in your fs, for example like NFS or CIFS do.

ilikejam 06-24-2010 10:20 AM

Quote:

Originally Posted by i92guboj (Post 4013689)
Unless you do the networking stuff in another layer that can present your network shares are regular elements in your fs, for example like NFS or CIFS do.

Have you ever tried that? ;)

i92guboj 06-24-2010 10:21 AM

Quote:

Originally Posted by ilikejam (Post 4013695)
Have you ever tried that? ;)

I wouldn't ever, my relationship with NFS has never been an easy one ;)

ilikejam 06-24-2010 10:29 AM

Well, it won't work. It won't work on any other shared filesystem either.

schneidz 06-24-2010 02:56 PM

will netcat help ?


All times are GMT -5. The time now is 01:46 AM.