MsgSend() and MsgReply()

HI,

Can I send messages between two nodes on a network.

More precisely I want to use MsgSend() and Msg Reply to send and recieve
messages.

Thanks
Srikanth

Srikanth Saripalli <srik@usc.edu> wrote:

HI,

Can I send messages between two nodes on a network.

More precisely I want to use MsgSend() and Msg Reply to send and recieve
messages.

Yup!

int fd;

fd = open ("/net/nodename/yourdevice", O_WRONLY);
MsgSend (fd, …

Cheers,
-RK


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

How about passing messages between two processes which are running on two
different nodes?

Thanks
Srikanth

Srikanth Saripalli <> srik@usc.edu> > wrote:

HI,

Can I send messages between two nodes on a network.

More precisely I want to use MsgSend() and Msg Reply to send and recieve
messages.


Yup!

int fd;

fd = open ("/net/nodename/yourdevice", O_WRONLY);
MsgSend (fd, …

Cheers,
-RK

Srikanth Saripalli <srik@usc.edu> wrote:

How about passing messages between two processes which are running on two
different nodes?

That’s exactly what the below piece of code does. “/net/nodename” is the
standard way of saying “on node ‘nodename’”, so what the code shows
is that you can use open() to get a connection ID on the client side to
any server located anywhere on the network. The client then uses
the same, standard MsgSend() function call that it would have used in the
local case. On the server side, there are no changes – the server
still creates a channel, it still does a MsgReceive(), and it still
does the MsgReply()…

That’s the high-level view, anyway – there are a few little interesting
twists along the way…

Cheers,
-RK

Thanks
Srikanth

Srikanth Saripalli <> srik@usc.edu> > wrote:

HI,

Can I send messages between two nodes on a network.

More precisely I want to use MsgSend() and Msg Reply to send and recieve
messages.


Yup!

int fd;

fd = open ("/net/nodename/yourdevice", O_WRONLY);
MsgSend (fd, …

Cheers,
-RK


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

Srikanth Saripalli <srik@usc.edu> wrote:

HI,

Can I send messages between two nodes on a network.

More precisely I want to use MsgSend() and Msg Reply to send and recieve
messages.

Oh yes, I should also tell you that this group, qdn.public.ddk.network,
is intended for discussions of the io-net network (i.e., implementing
your own drivers), not for general OS discussions :slight_smile:

Try qdn.public.qnxrtp.os…

Cheers,
-RK


Robert Krten, PARSE Software Devices +1 613 599 8316.
Realtime Systems Architecture, Books, Video-based and Instructor-led
Training and Consulting at www.parse.com.
Email my initials at parse dot com.

Srikanth Saripalli <srik@usc.edu> wrote:

HI,

Can I send messages between two nodes on a network.

More precisely I want to use MsgSend() and Msg Reply to send and recieve
messages.

A couple of posts have said yes… but were, maybe, missing that
you need io-net runnig with the QNX networking stack, qnet, loaded
and running.

Take a look at the docs for npm-qnet.so for a bit more detail.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.