タグ

2008年11月1日のブックマーク (1件)

  • select の semantics - 兼雑記

    なんか要は select で write 待ちしてる時に、帰ってきた file descriptor に何バイトまで書けるか、という話。 http://shinh.skr.jp/m/?date=20081008#p01 のへんに適当にはったりしたリンクによると、ポータビリティ考えるなら非同期使え、ってのが明らかに正しいぽい。 POSIX なんかを見てみると、 http://www.opengroup.org/onlinepubs/009695399/functions/select.html If a descriptor refers to a socket, the implied output function is the sendmsg() function supplying an amount of normal data equal to the current value

    select の semantics - 兼雑記