spawnl() and ConnectAttach()?

Hi, I want the create a client/server application using probably more than
one CPU.

If I used spawnl() to start a process on my node or another node, can I use
the process Id to create the coid and how? I’m trying to setup the
MsgSend() but I don’t know how to choose the right coid if my processes are
created with spawnl(). Is it possible to start a process using spawnl() on
a remote node?

All exemples that I saw are client/server in the same process. Should I use
name_attach() and name_open() to do the job or spawnl() can do the same?

Help me, I’m a bite confuse and need help.

Thanks.

The process ID returned by spawn can not be used as an connection id.

The server progress can create a channel with ChannelCreate() and somehow
tell the client process the channel ID such that the client process can use
ConnectAttach() with that channel ID, which returns a connection ID.

I think the easiest way, however, is to use name_attach and name_open.
name_open returns the connection ID right away.

Markus


“Sylvain Guillemette” <sguillemette@akitek.com> wrote in message
news:994rf1$d60$1@inn.qnx.com

Hi, I want the create a client/server application using probably more than
one CPU.

If I used spawnl() to start a process on my node or another node, can I
use
the process Id to create the coid and how? I’m trying to setup the
MsgSend() but I don’t know how to choose the right coid if my processes
are
created with spawnl(). Is it possible to start a process using spawnl()
on
a remote node?

All exemples that I saw are client/server in the same process. Should I
use
name_attach() and name_open() to do the job or spawnl() can do the same?

Help me, I’m a bite confuse and need help.

Thanks.

Do you think a shared memory could help to tell other client what channel
to use or something easier could be done?

Thanks Markus.

“Markus Loffler” <loffler@ces.clemson.edu> a écrit dans le message news:
994s6p$djg$1@inn.qnx.com

The process ID returned by spawn can not be used as an connection id.

The server progress can create a channel with ChannelCreate() and somehow
tell the client process the channel ID such that the client process can
use
ConnectAttach() with that channel ID, which returns a connection ID.

I think the easiest way, however, is to use name_attach and name_open.
name_open returns the connection ID right away.

Markus


“Sylvain Guillemette” <> sguillemette@akitek.com> > wrote in message
news:994rf1$d60$> 1@inn.qnx.com> …
Hi, I want the create a client/server application using probably more
than
one CPU.

If I used spawnl() to start a process on my node or another node, can I
use
the process Id to create the coid and how? I’m trying to setup the
MsgSend() but I don’t know how to choose the right coid if my processes
are
created with spawnl(). Is it possible to start a process using spawnl()
on
a remote node?

All exemples that I saw are client/server in the same process. Should I
use
name_attach() and name_open() to do the job or spawnl() can do the same?

Help me, I’m a bite confuse and need help.

Thanks.
\

I consider name_attach()/name_open the easiest.
The shared mem solution would work, but it is more complicated.
Markus


“Sylvain Guillemette” <sguillemette@akitek.com> wrote in message
news:995084$g1e$1@inn.qnx.com

Do you think a shared memory could help to tell other client what channel
to use or something easier could be done?

Thanks Markus.

“Markus Loffler” <> loffler@ces.clemson.edu> > a écrit dans le message news:
994s6p$djg$> 1@inn.qnx.com> …
The process ID returned by spawn can not be used as an connection id.

The server progress can create a channel with ChannelCreate() and
somehow
tell the client process the channel ID such that the client process can
use
ConnectAttach() with that channel ID, which returns a connection ID.

I think the easiest way, however, is to use name_attach and name_open.
name_open returns the connection ID right away.

Markus


“Sylvain Guillemette” <> sguillemette@akitek.com> > wrote in message
news:994rf1$d60$> 1@inn.qnx.com> …
Hi, I want the create a client/server application using probably more
than
one CPU.

If I used spawnl() to start a process on my node or another node, can
I
use
the process Id to create the coid and how? I’m trying to setup the
MsgSend() but I don’t know how to choose the right coid if my
processes
are
created with spawnl(). Is it possible to start a process using
spawnl()
on
a remote node?

All exemples that I saw are client/server in the same process. Should
I
use
name_attach() and name_open() to do the job or spawnl() can do the
same?

Help me, I’m a bite confuse and need help.

Thanks.


\

“Sylvain Guillemette” <sguillemette@akitek.com> wrote in message
news:994rf1$d60$1@inn.qnx.com

Hi, I want the create a client/server application using probably more than
one CPU.

If I used spawnl() to start a process on my node or another node,

QNX6 does not support spawning on a remote note.

the process Id to create the coid and how? I’m trying to setup the
MsgSend() but I don’t know how to choose the right coid if my processes
are
created with spawnl().

Is it possible to start a process using spawnl() on a remote node?

Not at this time. I’m told by QNX it’s on their todo list but no ETA.



All exemples that I saw are client/server in the same process. Should I
use
name_attach() and name_open() to do the job or spawnl() can do the same?

Help me, I’m a bite confuse and need help.

Thanks.