导航

2014年8月12日

摘要: send、recv和sendto、recvfrom,一般情况下,send、recv在TCP协议下使用,sendto、recvfrom在UDP协议下使用,也可以在TCP协议下使用,不过用的很少。1、send这里只描述同步socket的send函数的执行流程。s:套接字|buf:存储发送数据|len:发... 阅读全文

posted @ 2014-08-12 23:33 smartmhs 阅读(3645) 评论(0) 推荐(0)