Hi, All
I wrote a resource manager to get _IO_MSG messages. And when it started
to get bigger messages I found problem with receiving ones.
I send a message 7932 byte and get:
ctp->info.srcmsglen = 2077
ctp->info.msglen = 2077
cpt->size = 41
Why srcmsglen doesn’t equal 7932?
Why msglen doesn’t equal size?
What difference between ctp->info.msglen and cpt->size?
I tried to change resmgr_attr.msg_max_size from 2048 to 4096 and what
I saw:
ctp->info.srcmsglen = 4104
ctp->info.msglen = 4104
cpt->size = 41
Looking to the documentation:
msg_max_size
The minimum amount of room to reserve for receiving a message
that’s allocated in resmgr_context_alloc(). If the value is too
low, or you specify it as 0, resmgr_attach() picks a value
that’s usable.
So if I understand right msg_max_size is just a buffer, not a upper size
of incoming message. Then why I can get message more then msg_max_size?
I am using QNX 6.2.1A
Sergiy Uvarov