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

Functions like ntohl and htonl are the biggest blemish in the design of the Berkeley Sockets API because it's defined to read memory off the wire without deserializing it. Those functions shouldn't have been invented for the reasons described in the linked blog posts. The C standard isn't going to evolve to include functions that only exist to accommodate code that misunderstands the standard.


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

Search: