Thread: Ipc

  1. #1
    Registered User
    Join Date
    Aug 2005
    Posts
    1

    Lightbulb Ipc

    /*I write c program that runs under unix,it creates a memory queue,I want to find a way to know the queue id before it's being created,then how can i write in this queue using another program.*/
    Code:
    int main(int argc, char* argv[])
    {
        int queue_id = msgget(IPC_PRIVATE, 0777);
        printf("queue id = '%d' .\n",queue_id);
        printf("IPC_PRIVATE = '%d' .\n",IPC_PRIVATE);
        return queue_id;
    }

  2. #2

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simulating wireless netowork using IPC
    By tenkasian in forum C Programming
    Replies: 3
    Last Post: 03-23-2009, 04:16 PM
  2. Segmentation fault - IPC
    By kbfirebreather in forum C Programming
    Replies: 7
    Last Post: 02-01-2009, 03:17 PM
  3. Ipc
    By Rhidian in forum C Programming
    Replies: 2
    Last Post: 03-24-2005, 03:42 AM
  4. a question regarding ipc
    By netwizio in forum Linux Programming
    Replies: 6
    Last Post: 01-10-2004, 01:55 AM
  5. IPC vs RPC
    By hermit in forum Tech Board
    Replies: 7
    Last Post: 09-09-2002, 09:58 AM