Home » U++ Library support » U++ Core » read/write to pipe /dev/rtp..?
read/write to pipe /dev/rtp..? [message #33750] |
Sat, 10 September 2011 15:06 |
Monty.mvh
Messages: 31 Registered: July 2011 Location: Bangalore
|
Member |
|
|
Hi,
I am trying write and read commands to pipe /dev/rtp0 and rtp1..
can anyone provide an example for this...
I tried with FileOut method but did'nt get the thing..
FileOut file1;
file1.Open ( "/dev/rtp1 " );
file1.Put(&wr1,sizeof(wr1));
where wr1 is
struct write {
int command;
int data;
};
write wr1;
Also is " file1.Put(&wr1,sizeof(wr1)); " is the right method to write data to any file other than /dev..????
|
|
|
Goto Forum:
Current Time: Mon Jun 17 08:49:50 CEST 2024
Total time taken to generate the page: 0.01541 seconds
|