\begin{[EMAIL PROTECTED]}
> You use recv() for sockets, not read(), dummy! ;-P (I made that very same
> mistake while porting UNIX sockets programs to winsock at some ridiculous
> hour like 4a.m. a couple of days ago.... took me a few hours to realise what
> I had done, and I have been programming sockets for years).
>
> if (recv(socketfd, readBuffer, howBigIsReadBuffer, YourFlags) == -1)
read(2) should work fine on sockets, too. depends on exactly what type
of information/control you want and read(2) tends to feel wierd on
connection-less protocols.
its not my fault winsock/windows decided *not* to make everything look
like a file.
--
- Gus
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug