LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-24-2010, 04:34 AM   #1
mgnidhi_3july
LQ Newbie
 
Registered: May 2010
Posts: 23

Rep: Reputation: 15
Question 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...
 
Old 06-24-2010, 10:06 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
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
 
Old 06-24-2010, 10:13 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
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.
 
Old 06-24-2010, 10:20 AM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Quote:
Originally Posted by i92guboj View Post
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?
 
Old 06-24-2010, 10:21 AM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by ilikejam View Post
Have you ever tried that?
I wouldn't ever, my relationship with NFS has never been an easy one
 
Old 06-24-2010, 10:29 AM   #6
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Well, it won't work. It won't work on any other shared filesystem either.
 
Old 06-24-2010, 02:56 PM   #7
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
will netcat help ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problems using named pipes shayke23 Linux - Software 2 08-13-2009 12:18 AM
Client Server using named pipes whho Linux - General 3 02-03-2009 09:25 PM
Named pipes and C jobless Programming 2 10-21-2008 01:31 PM
named pipes lamtab Programming 12 12-11-2007 10:44 AM
Use of Named Pipes casey0999 Linux - Software 3 08-03-2003 01:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration