用户工具

站点工具


linux:socket编程

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
linux:socket编程 [2023/02/21 09:24] zhangguolinux:socket编程 [2023/03/17 10:12] (当前版本) – 外部编辑 127.0.0.1
行 15: 行 15:
  
 {{:linux:pasted:20230221-085436.png}} {{:linux:pasted:20230221-085436.png}}
 +
 +
 +=== - recv,read ===
 +
 +<code>
 +Returns the number of bytes actually recieved (which might be less than you requested in the
 +len paramter), or -1 on error (and errno will be set accordingly.)
 +If the remote side has closed the connection, recv() will return 0. This is the normal method
 +for determining if the remote side has closed the connection.
 +</code> 
  
 ==== - function ==== ==== - function ====
linux/socket编程.1676942659.txt.gz · 最后更改: 2023/03/17 10:12 (外部编辑)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki