fifo « unix « C Q&A

Home
C Q&A
1.assembly
2.buffer
3.Card
4.Cast
5.compile
6.console
7.const
8.constructor
9.database
10.Date
11.Debug
12.Design
13.Development
14.DLL
15.encrypt
16.enum
17.eof
18.Event
19.fork
20.Format
21.gcc
22.gdb
23.graph
24.graphics
25.gui
26.Holiday Event
27.image
28.IP
29.iterator
30.macro
31.makefile
32.malloc
33.Menu
34.mysql
35.network
36.openssl
37.operator
38.password
39.pipe
40.preprocessor
41.printf
42.pthread
43.Regular expression
44.scanf
45.semaphore
46.SerialPort
47.server
48.Socket
49.sql
50.SQLserver
51.sscanf
52.std
53.stdin
54.stdout
55.stl
56.strcmp
57.stream
58.switch
59.Template
60.thread
61.timer
62.unix
63.video
64.Virtual
65.visualstudio
66.winapi
67.windows
68.xml
C Q&A » unix » fifo 

1. read the last line of a fifo    stackoverflow.com

Here is the situation : Some process writes lines into a fifo file (created with mkfifo). At some point in my program, I want to read the last line in the ...

2. Having trouble getting a Unix FIFO to work properly?    stackoverflow.com

I'm trying to write a simple daemon in Linux, which will create a FIFO, then collect anything written to the FIFO and write that data to a file at a later ...

3. open() causes program termination    stackoverflow.com

I use the following program to write to a fifo:

#include <iostream>
#include <fstream>

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>

using namespace std;

int main() {

    unlink("fifo1");

    if ...

4. UNIX FIFO: the process hangs if I don't close the input side of the fifo    stackoverflow.com

I've just started working with UNIX FIFOs, and I discovered something while experimenting with my first FIFO program. The program works this way: after creating the FIFO, two processes are started ...

5. open syscall on fifo not blocking?    stackoverflow.com

I'm creating a quite-big project as an homework where I need to create a server program which listen to 2 fifos, where clients will write. Everything works, but there is something that ...

6. Correct way to write/read data over a fifo    stackoverflow.com

I've created, as an homework, a big project which simulate a mailbox server (only through process on the same computer, so through fifo, it's a homework) I can't post the project because ...

7. Detect when a fifo is opened from a program    stackoverflow.com

I have a situation where I need to check if the other side of a fifo has opened it, however I can't use a open because otherwise the program will start ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.