[openbeos] Re: select() in BeOS ?

  • From: Mathieu Malaterre <mmalater@xxxxxxxxxxxx>
  • To: openbeos@xxxxxxxxxxxxx
  • Date: Tue, 16 Mar 2004 18:41:21 -0500

Wow that's a detailed answer ! Anyway I still have some more questions:

- Where can I find BONE ?

- Yes you are right I am porting software to BeOS (see http://cmake.org). I don't want to spend a lot of time on it. So if process exectution can be similar to unix I'll wait for another BeOS kernel. But just for curiousity where can I find docs about 'Node Monitoring' in BeOS ?

Thanks Michael
Mathieu

Michael Phipps wrote:

It's sort of the right place, sort of not. :-)

The issue with select is that select() was designed to work on file descriptors. In (say) Linux, a scoket is a file descriptor. So you could select() on a file and a socket and it would work just fine. In BeOS, the network kit was implemented in user land. That prohibits sockets from being file descriptors (which are part of kernel land). Be's select, IIRC, works only on network sockets. Never on files. There is no implementation of select for files.

BONE is a new BeOS kernel that Be was working on. It contains a networking stack in the kernel and, therefore, a "complete" select().

Now, for the on topic stuff:
Our (OBOS) networking stuff is in the kernel. We should have a "proper" select.
I can't tell you if waiting for us is a good idea or not. :-D


Finally, I would guess that you are porting code. If you are not porting code, there are alternatives in BeOS that work better than select for what you want. Node Monitoring, for example.


Other related posts: