Distributed Posix Mesg Queues in Neutrino

Folks!

I want to use posix mesg queues transparently across the network in
Neutrino. I tried using the pathname space and tried:

mq_open("/net/hostname/dev/mqueue/fault" …)
mq_open("/net/hostname/fault" …)

both of which fails. Can somebody tell me what I am doing wrong here ?
Qnet is configured properly and mqueue manager is running too.

Also I found mq_timedsend() and mq_timedreceive() crashes ? Has
anybody seen this problem ?

All this happens on Neutrino 2.11.

Please email me directly suresh@photuris.com, as I don’t read this newsgroup
often.

Thanks,

-Suresh

suresh <suresh@photuris.com> wrote:

Folks!

I want to use posix mesg queues transparently across the network in
Neutrino. I tried using the pathname space and tried:

mq_open("/net/hostname/dev/mqueue/fault" …)
mq_open("/net/hostname/fault" …)

both of which fails. Can somebody tell me what I am doing wrong here ?
Qnet is configured properly and mqueue manager is running too.

Is mqueue runing on /net/hostname? That is where it would really
need to be running. There was a bug in the resolution of named
services (of which mqueue was one) which has been fixed internally
and will be in the next patch, but I don’t believe that is what
you are seeing.

Thomas

Hi Thomas,

Yes, mqueue is running on both the machines. Here is what I did:

  1. I am able to “echo” into a posix mesg queue and “cat” out of a
    posix mesg queue using the “/net/” pathnames which I believe
    means the open(), read() and write() calls work.

  2. mq_open() on the same “/net” pathname fails.

Could you elaborate the named services resolution problem, so
that I can aware when I encounter it in Neutrino ?

Thanks!

-Suresh


“Thomas Fletcher” <thomasf@qnx.com> wrote in message
news:956elf$kp0$1@nntp.qnx.com

suresh <> suresh@photuris.com> > wrote:
Folks!

I want to use posix mesg queues transparently across the network in
Neutrino. I tried using the pathname space and tried:

mq_open("/net/hostname/dev/mqueue/fault" …)
mq_open("/net/hostname/fault" …)

both of which fails. Can somebody tell me what I am doing wrong here ?
Qnet is configured properly and mqueue manager is running too.

Is mqueue runing on /net/hostname? That is where it would really
need to be running. There was a bug in the resolution of named
services (of which mqueue was one) which has been fixed internally
and will be in the next patch, but I don’t believe that is what
you are seeing.