FIFO/Named Pipes
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > FIFO/Named Pipes




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    FIFO/Named Pipes  
Grant Austin


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-26-04 03:34 PM

Is it possible to send a struct through a named pipe?

It would be handy for what I'm working on but not horribly
necessary.

-Grant





[ Post a follow-up to this message ]



    Re: FIFO/Named Pipes  
Måns Rullgård


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-26-04 03:34 PM

Grant Austin <gaustin@foo.foo.bar.net> writes:

> Is it possible to send a struct through a named pipe?

Yes.  Since a pipe is always local many of the possible errors (byte
order, padding) will vanish.  Sending structs over network sockets, or
storing them in files requires a bit more care.

--
Måns Rullgård
mru@kth.se





[ Post a follow-up to this message ]



    Re: FIFO/Named Pipes  
joe durusau


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-26-04 06:34 PM



Grant Austin wrote:

> Is it possible to send a struct through a named pipe?
>
> It would be handy for what I'm working on but not horribly
> necessary.
>
> -Grant

You can send the data in it, but it might be dangerous.  I would expect
it would work, provided that nobody had used compiler options that
changed the way the data was packed in one module or the other.

Speaking only for myself,

Joe Durusau







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:53 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register