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) James Buchanan -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
- [SLUG] Re: EINVAL on socket read (Michael Still) james
- [SLUG] Re: EINVAL on socket read (Michael Still) Angus Lees
- Re: [SLUG] Re: EINVAL on socket read (Michael Still) James Buchanan
- Re: [SLUG] Re: EINVAL on socket read (Michael Still) James Morris
- Re: [SLUG] Re: EINVAL on socket read (Michael Stil... James Buchanan
