Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I don't quite understand the reason for thinking BSD sockets are horrible?


I would guess the problem with sockets is in the whole creation process. Instead of just calling open() on a magic pathname (like how you deal with devices in Unix), you call socket(), then bind()/listen()/accept() on the server side, or connect() on the client side. Luckily they didn't totally screw it up, and it's just a regular file descriptor after that point... except on Windows, where they did screw it up.


I guess it's because sockets are not files?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: