EmbLogic's Blog

communication using message queue

RCS file: receiever.c,v
enter description, terminated with single ‘.’ or end of file:
NOTE: This is NOT the log message!
>> included all the header files that will be used in the code
>> .
done
[root@(none) msgq]# ci ./receiever.c
./receiever.c,v ./receiever.c
revision 1.1 (locked)
done
[root@(none) msgq]# ci ./receiever.c
./receiever.c,v > defined the message buffer structure
>> got the kernel id using msgget()
>> .
done
[root@(none) msgq]# co -l ./receiever.c
./receiever.c,v –> ./receiever.c
revision 1.2 (locked)
done
[root@(none) msgq]# man msgctl
[root@(none) msgq]# ci ./receiever.c
./receiever.c,v > gave IPC_STAT command and address of buffer to the msgctl()
>> .
done
[root@(none) msgq]# co -l ./receiever.c
./receiever.c,v –> ./receiever.c
revision 1.3 (locked)
done
[root@(none) msgq]# ci ./receiever.c
./receiever.c,v > gave the message type to the message buffer
>> gave the string using gets()
>> .
done
[root@(none) msgq]# co -l ./receiever.c
./receiever.c,v –> ./receiever.c
revision 1.4 (locked)
done
[root@(none) msgq]# ci ./receiever.c
./receiever.c,v > using msgsnd() sending the message from sender to the receiever
>> on the receiever side using msgecv() receieved the message
>> printed the message receieved
>> .
done
[root@(none) msgq]# co -l ./receiever.c
./receiever.c,v –> ./receiever.c
revision 1.5 (locked)
done
[root@(none) msgq]# rlog ./receiever.c

RCS file: ./receiever.c,v
Working file: ./receiever.c
head: 1.5
branch:
locks: strict
root: 1.5
access list:
symbolic names:
keyword substitution: kv
total revisions: 5; selected revisions: 5
description:
included all the header files that will be used in the code
—————————-
revision 1.5 locked by: root;
date: 2014/11/13 07:55:19; author: root; state: Exp; lines: +1 -1
using msgsnd() sending the message from sender to the receiever
on the receiever side using msgecv() receieved the message
printed the message receieved
—————————-
revision 1.4
date: 2014/11/13 07:53:55; author: root; state: Exp; lines: +1 -1
gave the message type to the message buffer
gave the string using gets()
—————————-
revision 1.3
date: 2014/11/13 07:52:43; author: root; state: Exp; lines: +1 -1
gave IPC_STAT command and address of buffer to the msgctl()
—————————-
revision 1.2
date: 2014/11/13 07:49:23; author: root; state: Exp; lines: +1 -1
defined the message buffer structure
got the kernel id using msgget()
—————————-
revision 1.1
date: 2014/11/13 07:48:36; author: root; state: Exp;
Initial revision

Comments are closed.