Not logged inOpenClonk Forum
Up Topic HTTP Content-Length

This board is threaded (i.e. has a tree structure). Please use the Reply button of the specific post you are referring to, not just any random button. If you want to reply to the topic in general, use the Post button near the top and bottom of the page.

Post Reply
In Response to PeterW

> Yes, it's more elegant for the blocking case. The main point is that it's a return value of read, though.


Well, still. Closing the connection is an exceptional condition, so I would feel it to be the cleaner design if it used the -1 return + errno interface as well. But I suppose at that point it really becomes a matter of taste.

Speaking of which: Why didn't they just define all the different error conditions to result in unique negative return values? That would be even better from the "everything in the return value" point of view. Ironically, I think that's more or less how it works on Windows.

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill