Well,

 from what I can understand a pipe is like a 'pipe' that moves data from  
one application to another one (to go in both directions do I have to use  
2 different pipes?).
What I'm looking for is something like a shared memory space, (like a  
double port RAM for electronic engineers!) where the two programs place  
their data in fixed locations and then they read it. Every single  
locations has the same meaning for both applications.

I don't know it this thing exists or if it is easy to implement, otherwise  
I'll take a better look at pipes.

Can you please tell me where to find some code examples both in C and php  
on how to use pipes?

Thanks, Paolo

In data 23 ottobre 2007 alle ore 15:32:35, Roberto A. Foglietta  
<[EMAIL PROTECTED]> ha scritto:

> I do not think sharing data between two application via files is a
> good, portable and sustainable method. I think it is the worst. If the
> two application would never collaborate via any network socket are
> overheaded for the task and two named pipe (fifo with file name) are
> the right and simplest way.
>
> http://en.wikipedia.org/wiki/Named_pipe
> http://www2.linuxjournal.com/article/2156
>
>
> 2007/10/23, Dave Van den Eynde <[EMAIL PROTECTED]>:
>>
>> Hey,
>>
>> Perhaps you should elaborate on the type of "sharing" that you would  
>> like to do? Why not do it the traditional UNIX way? Simply place the  
>> data that you want to share in a file from one application, and read it  
>> from another.
>>
>> You'll need to consider:
>> - access permissions
>> - concurrent access
>>
>> When you use sockets you'll have a lot more to consider.
>>
>> Dave
>>
>>
>> Paolo Chiarabaglio <[EMAIL PROTECTED]> wrote:
>>  Hi Roberto,
>>
>> thanks for your answer but as I've never done something like this I  
>> don't
>> know this tweo methods! Can you please tell me where I can find some
>> examples or tutorial?
>>
>> Thanks, Paolo
>>
>> In data 23 ottobre 2007 alle ore 00:05:10, Roberto A. Foglietta
>>
>>  ha scritto:
>>
>> > paolo chiarabaglio wrote:
>> >>  Hi,
>> >>
>> >> I have to share data between a software that runs in the background  
>> on
>> >> the fox board and some php applications.
>> >> Data must go from php to C application and vice-versa.
>> >>
>> >> How can I do this easily?
>> >
>> >   socket or fifo, I think
>> >
>> >   Cheers,
>> > Roberto
>> >
>> >
>> >
>> > Yahoo! Groups Links
>> >
>> >
>> >
>
>  Cheers,




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/foxboard/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/foxboard/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to