【正文】
should check your local man pages for more information and what is actually supported on your system. You bitwiseor these together, or just set flags to 0 ifyou want it to be a regular vanilla recv().MSG_OOBReceive Out of Band data. This is how to get data that has been sent to you with the MSG_OOB flag in send(). As the receiving side, you will have hadsignal SIGURG raised telling you there is urgent data. In your handler for that signal, you could call recv() with this MSG_OOB you want to call recv() just for pretend, you can call it with this flag. This will tell you what39。s waiting in the buffer for when you call recv() forreal (. without the MSG_PEEK flag. It39。s like a sneak preview into the nextrecv() recv() to not return until all the data you specified in the lenparameter. It will ignore your wishes in extremecircumstances, however, like if a signal interrupts the call or if some error occurs or if the remote side closes the connection, etc. Don39。t be mad with it.寧可累死在路上,也不能閑死在家里!寧可去碰壁,也不能面壁。是狼就要練好牙,是羊就要練好腿。什么是奮斗?奮斗就是每天很難,可一年一年卻越來(lái)越容易。不奮斗就是每天都很容易,可一年一年越來(lái)越難。能干的人,不在情緒上計(jì)較,只在做事上認(rèn)真;無(wú)能的人!不在做事上認(rèn)真,只在情緒上計(jì)較。拼一個(gè)春夏秋冬!贏一個(gè)無(wú)悔人生!早安!—————獻(xiàn)給所有努力的人.學(xué)習(xí)參考