Results 1 to 3 of 3

Thread: equilvalent of fifo in Qt

  1. #1
    Join Date
    Apr 2006
    Posts
    122
    Thanks
    18
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default equilvalent of fifo in Qt

    i am looking for equivalent of posix fifo in Qt.
    Will Qfile do? or anyone can tell me some condition on which i can check availablitiy of data in fifo besides read that beomes a continuous loop.

    cya
    quick

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: equilvalent of fifo in Qt

    FIFO just mean First In First Out.
    LIFO means Last In First Out.
    It can be implemented in various places.
    So if for example you use QList, you can implement both operations depending on how you use the push_front() push_back() pop_front() pop_back() calls...

  3. #3
    Join Date
    Apr 2006
    Posts
    122
    Thanks
    18
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: equilvalent of fifo in Qt

    i was looking for a Qt classs which provide me functionality over IPC fifo, generated by mkfifo() system call.
    like for sockets we have QtcpSocket .
    I couldn't find one. Anyways , can someone help me(its non qt now)knowing when a process writes to fifo, how i will get to know. i don't want to go for continuous read over it.

    or you can suggest me other way. i have a process which makes a fifo start writing to it. how i can read from but i don't want to go for continuous loop of reading.

Similar Threads

  1. Template stack, isn't there is a FIFO ?
    By yellowmat in forum Newbie
    Replies: 5
    Last Post: 3rd March 2006, 13:49

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.