Danny, Carsten, thanks for the responses...

Danny Backx wrote:
 > I believe you need to call WSAStartup before any winsock call. That's
> a difference between sockets on Unix (Linux, ..) and on Windows.

Calling WSAStartup also caused a segfault, in __MS_WSAStartup; like 
select, it is also due to a NULL function pointer.

After looking more closely at msnet.c, I noticed that all of the other 
functions (accept, bind, etc.) initially include the macro 
ENSURE_MSNET_INITTED. I'm guessing that this macro should be added to 
the definition of select as well.


Carsten Sørensen wrote:
> Also - you cannot use select() on file handles. Only sockets.

Ah, I see.
Is there another method that can be used for file handles that works 
similarly to select?


Cheers,

-- 
Lance Fetters
Ogaki, Gifu, Japan

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to