LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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, 05: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, 11:06 AM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
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, 11:13 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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, 11:20 AM   #4
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
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, 11:21 AM   #5
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,049

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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, 11:29 AM   #6
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 96
Well, it won't work. It won't work on any other shared filesystem either.
 
Old 06-24-2010, 03:56 PM   #7
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,197

Rep: Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642Reputation: 642
will netcat help ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:18 AM
Client Server using named pipes whho Linux - General 3 02-03-2009 10:25 PM
Named pipes and C jobless Programming 2 10-21-2008 02:31 PM
named pipes lamtab Programming 12 12-11-2007 11:44 AM
Use of Named Pipes casey0999 Linux - Software 3 08-03-2003 02:21 PM


All times are GMT -5. The time now is 05:05 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration