receive和read的区别:

 basic_stream_socket::receive:    Receive some data on the socket.  即收到一些数据就返回。也即会导致所谓的short reads and writes.

 read:  Attempt to read a certain amount of data from a stream before returning.  即收到指定的数据才返回。

posted on 2009-06-16 09:22  Frodo  阅读(3042)  评论(0编辑  收藏  举报