11.01.2015 Views

I/O Multiplexing: select and poll

I/O Multiplexing: select and poll

I/O Multiplexing: select and poll

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

前 頁 程 式 的 潛 在 問 題<br />

•<strong>select</strong> 在 socket 的 input buffer 有 資<br />

料 可 讀 時 即 會 return 此 socket 已 ready<br />

for reading<br />

•Readline 被 設 計 成 要 讀 到 以 換 行 字 元<br />

結 束 的 一 列 文 字 ( 或 是 socket 被 結 束 掉 ) 才<br />

會 return<br />

• 有 心 人 士 可 能 利 用 這 項 弱 點 進 行 攻 擊<br />

32

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!