Thread: Linux IPC implement signal and slot for new messange

  1. #1
    Registered User
    Join Date
    Dec 2014
    Posts
    4

    Linux IPC implement signal and slot for new messange

    Hi, I'm new in IPC.
    I would like to implement a signal of a new message, which calls the slot function, eg .:
    Code:
    msg_on_newMessange(type, &slotFunction);
    My code:
    Header file: messages.h
    Parent file: parent.c
    Child file: child.c

    How can I do this ?

  2. #2
    Registered User
    Join Date
    Oct 2008
    Location
    TX
    Posts
    2,059
    You need to state your requirements clearly. We can't read your mind so please be as descriptive as possible of what you are trying to solve.

  3. #3
    Registered User
    Join Date
    Dec 2014
    Posts
    4
    I know how to read, write messages in message queue. But I would like to implement function that is called when new messange was added to messange queue ( callback ).
    Last edited by s77s; 12-05-2014 at 04:19 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Implement Signal() using sigaction() in ubuntu
    By zmhnak in forum C Programming
    Replies: 2
    Last Post: 03-22-2013, 07:19 PM
  2. Pass user parameter to signal handler in linux
    By nima0102 in forum Linux Programming
    Replies: 8
    Last Post: 04-03-2012, 08:02 AM
  3. Replies: 9
    Last Post: 11-12-2007, 03:29 PM
  4. AGP Slot
    By nbo10 in forum Tech Board
    Replies: 5
    Last Post: 05-29-2004, 05:02 PM
  5. change signal - seriel port - dos or linux
    By sphreak in forum C++ Programming
    Replies: 0
    Last Post: 01-03-2003, 11:24 AM