用户工具

站点工具


linux:socket编程

差别

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

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
linux:socket编程 [2023/02/21 08:56] zhangguolinux:socket编程 [2023/03/17 10:12] (当前版本) – 外部编辑 127.0.0.1
行 2: 行 2:
 ====== socket编程 ====== ====== socket编程 ======
 ===== - socket 学习 ===== ===== - socket 学习 =====
 +
 +[[https://www.tutorialspoint.com/unix_sockets/socket_core_functions.htm|Unix Socket - Core Functions]]
  
 [[https://www.geeksforgeeks.org/socket-programming-cc/|Socket Programming in C/C++]] [[https://www.geeksforgeeks.org/socket-programming-cc/|Socket Programming in C/C++]]
  
 +[[https://www.binarytides.com/socket-programming-c-linux-tutorial/|Socket programming in C on Linux – The Ultimate Guide for Beginners]]
 +
 +==== - 大图 ====
 +
 +
 +{{:linux:pasted:20230221-092340.png}}
  
 {{: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 ====
 +
  
 <code> <code>
linux/socket编程.1676940972.txt.gz · 最后更改: 2023/03/17 10:12 (外部编辑)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki