Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - MsgReceive Vs select + read: (3 Items)
   
MsgReceive Vs select + read  
Dear guys

As I know, connection id used for MsgReceive is file descriptor in QNX OS. If so, Could I replace4 MsgReceive by 
selcet() + read() ? 

Thanks,
Dooeui
RE: MsgReceive Vs select + read  
No, MsgReceive() is using a "Channel Id", which is returned from
"ChannelCreate()" call. This is usually a Server calling this.

The ConnectionId, or "File Descriptor" is returned from ConnectAttach()
which is usually a client thing.

So no, you can't simply replace a MsgReceive() with a select() + read().

-xtang

> -----Original Message-----
> From: Dooeui Hong [mailto:community-noreply@qnx.com]
> Sent: August 16, 2009 7:42 PM
> To: ostech-core_os
> Subject: MsgReceive Vs select + read
> 
> Dear guys
> 
> As I know, connection id used for MsgReceive is file descriptor in QNX
OS.
> If so, Could I replace4 MsgReceive by selcet() + read() ?
> 
> Thanks,
> Dooeui
> 
> 
> 
> _______________________________________________
> 
> OSTech
> http://community.qnx.com/sf/go/post36062
Re: RE: MsgReceive Vs select + read  
Ooops!.. 

Thanks,
Dooeui