The read function returns the number of bytes read (up to the maximum that you specify), -1 on error, or zero if the end of the file has been reached.
read 函数返回读取的字节数(最高为您指定的最大值);或者 -1,表示错误;或者 0,如果已经到达文件末尾。
Read should return exactly the number of bytes requested, except on EOF or error; otherwise, the rest of the data will be substituted with zeroes.
除非碰到EOF或出现错误,否则read应该返回所请求的字节数的数据;否则,其余数据都会被替换成0。
You may fail to connect to a site through IPv6 and have an error message sent to the requesting application on your computer (read: web browser).
你有可能在始于IPv6的情况下出现连接失败,并会有一条出错信息发送给你计算机上的请求应用(比如说:web浏览器)。
应用推荐