I require a custom name_attach to be able to set the _NTO_CHF_REPLY_LEN
and _NTO_CHF_SENDER_LEN flags. How do I go about it?
I use the MsgReceive/MsgReply functions to handle my inter-process
communications. Perhaps there is another elegant way of telling a client
what the server’s channel id is, then I can use ChannelCreate.
Francois
Francois Joubert <sommerfj@webmail.co.za> wrote:
I require a custom name_attach to be able to set the _NTO_CHF_REPLY_LEN
and _NTO_CHF_SENDER_LEN flags. How do I go about it?
I use the MsgReceive/MsgReply functions to handle my inter-process
communications. Perhaps there is another elegant way of telling a client
what the server’s channel id is, then I can use ChannelCreate.
Try:
chid = ChannelCreate(cflags);
dpp = _dispatch_create(chid, dflags);
name_attach(dpp, path, nflags);
Yes, _dispatch_create() is not documented.
-David
David Gibbs
QNX Training Services
dagibbs@qnx.com
David Gibbs wrote:
Francois Joubert <> sommerfj@webmail.co.za> > wrote:
I require a custom name_attach to be able to set the _NTO_CHF_REPLY_LEN
and _NTO_CHF_SENDER_LEN flags. How do I go about it?
I use the MsgReceive/MsgReply functions to handle my inter-process
communications. Perhaps there is another elegant way of telling a client
what the server’s channel id is, then I can use ChannelCreate.
Try:
chid = ChannelCreate(cflags);
dpp = _dispatch_create(chid, dflags);
name_attach(dpp, path, nflags);
Yes, _dispatch_create() is not documented.
-David
Can I assume the _dispatch_create prototype to be?
dispatch_t * _dispatch_create(int chid, int dflags);
Just to stop my compiler from complaining!
Francois
Francois Joubert <sommerfj@webmail.co.za> wrote:
David Gibbs wrote:
Francois Joubert <> sommerfj@webmail.co.za> > wrote:
I require a custom name_attach to be able to set the _NTO_CHF_REPLY_LEN
and _NTO_CHF_SENDER_LEN flags. How do I go about it?
I use the MsgReceive/MsgReply functions to handle my inter-process
communications. Perhaps there is another elegant way of telling a client
what the server’s channel id is, then I can use ChannelCreate.
Try:
chid = ChannelCreate(cflags);
dpp = _dispatch_create(chid, dflags);
name_attach(dpp, path, nflags);
Yes, _dispatch_create() is not documented.
-David
Can I assume the _dispatch_create prototype to be?
dispatch_t * _dispatch_create(int chid, int dflags);
Just to stop my compiler from complaining!
Yes. Compilers are SO whiny, aren’t they?
-David
David Gibbs
QNX Training Services
dagibbs@qnx.com