diff options
| author | Thorsten Töpper <atsutane@freethoughts.de> | 2011-01-03 01:21:09 +0100 |
|---|---|---|
| committer | Thorsten Töpper <atsutane@freethoughts.de> | 2011-01-03 01:21:09 +0100 |
| commit | 037ccb68c0a2f5462dc06c40ddaf3f7604725cfb (patch) | |
| tree | 8cf634d899e277dc753025cae28e7428e46b884a /aufgabe3/queue.h | |
| parent | a0685b1f6b90b29d37f6f45c2279a837ae9ccd63 (diff) | |
| download | prozesskommunikation-037ccb68c0a2f5462dc06c40ddaf3f7604725cfb.tar.gz prozesskommunikation-037ccb68c0a2f5462dc06c40ddaf3f7604725cfb.tar.bz2 | |
Aufgabe 3: queue.h um weitere globale Definitionen ergänzt.
Diffstat (limited to 'aufgabe3/queue.h')
| -rw-r--r-- | aufgabe3/queue.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/aufgabe3/queue.h b/aufgabe3/queue.h index 5d83d81..08a320e 100644 --- a/aufgabe3/queue.h +++ b/aufgabe3/queue.h @@ -14,4 +14,14 @@ #define MQ_TO_STATISTIC "/mq_bts_pk_statistic" #define MQ_TO_MONITOR "/mq_bts_pk_monitor" +/* + * Definition der Größe des zum Empfang und Versand + * der Nachrichten verwendeten Speichers. + * Um garantiert jede Nachricht empfangen zu können, + * muss der zum Empfang genutzte Puffer mindestens 1 + * Byte größer sein, als der zum Versand genutzte. + */ +#define MQ_MSG_SIZE_RCV (sizeof(int)*2+1) +#define MQ_MSG_SIZE_SEND (sizeof(int)*2) + #endif |
