image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
Thread Tools
  #1  
Old August 6th, 2005, 09:30 AM
Registered User
 
Join Date: Aug 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Miss K is on a distinguished road
Named Pipes

Hi,

I've created 2 pipes at Unix level (fifo's), that I want to allow my Cocoa/Objective C application to access - one for reading and the other for writing.

I'm fairly sure I need to use the NSPipe class, but I can't find anywhere that shows me how to link a specific instance of NSPipe to an existing shell named pipe

I've got CGI pages on my server to provide a browser interface to a local application. Part of what the CGI scripts will do is pass input to my Cocoa application, which will process it and determine what output needs to be sent back, which will be written back to the pipe and displayed on the client's web browser. The only way I can think of achieving this is to use pipes to pass the data between the CGI scripts and the Cocoa application. Is there another alternative? If so, what is it and how can I make it work. If not, how can I link existing pipes to NSPipe objects...?

Any help with this would be greatly appreciated.
Reply With Quote
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -5. The time now is 05:40 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.