<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
<channel>
 <title><![CDATA[socket编程出现recv: Transport endpoint ..]]></title>
 <link><![CDATA[http://121.40.142.80/read.php?tid=1735]]></link>
 <description><![CDATA[Latest 20 replies of socket编程出现recv: Transport endpoint ..]]></description>
 <copyright><![CDATA[Copyright(C) ]]></copyright>
 <generator><![CDATA[PHPWind Forums by PHPWind Studio]]></generator>
 <lastBuildDate><![CDATA[Mon, 27 Jul 2026 05:33:26 +0000]]></lastBuildDate>
  <image>
 <url><![CDATA[images/rss.gif]]></url>
 <title><![CDATA[PHPWind Board]]></title>
 <link><![CDATA[http://121.40.142.80]]></link>
 <description><![CDATA[]]></description>
  </image>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[建议用select模型,这样直接链接的服务端不支持多链接,send（）和recv（）这两个函数都使用accept()返回的那个socket描述符&nbsp;&nbsp;&nbsp;&nbsp;,而在client端send（）和recv（）这两个函数都使用connet()链接的socket描述符]]></description>
 <link><![CDATA[http://121.40.142.80/read.php?tid=1735#8897]]></link>
 <author><![CDATA[夺命书生]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Wed, 19 Aug 2009 13:23:03 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[code]&nbsp;&nbsp;&nbsp;&nbsp; //处理来自客户机的验证信息
&nbsp;&nbsp;&nbsp;&nbsp; while(iMsg&lt;2)
&nbsp;&nbsp;&nbsp;&nbsp; {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; bzero(buf,MAX_RECV);
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(recv(sockfd,buf,MAX_RECV,0)==-1)
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {
[ ..]]></description>
 <link><![CDATA[http://121.40.142.80/read.php?tid=1735#5142]]></link>
 <author><![CDATA[kasim]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Mon, 04 May 2009 06:02:06 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[[s:11]]]></description>
 <link><![CDATA[http://121.40.142.80/read.php?tid=1735#5119]]></link>
 <author><![CDATA[caler]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Sun, 03 May 2009 09:31:36 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[不过还是谢谢你了！等待高手中......
这里补问一个问题，send（）和recv（）函数的第一个参数应填哪一方的套接字描述符，我的程序里服务器端send里填server的描述符发送不成功，而填client的可以，可这与网上的说法不一致阿？有点迷惑了 [s:11]]]></description>
 <link><![CDATA[http://121.40.142.80/read.php?tid=1735#5113]]></link>
 <author><![CDATA[caler]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Sun, 03 May 2009 04:33:20 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[抱歉，通常我是不分析的，我只负责让人把源代码贴出来，论坛里会有高手来分析， [s:7]&nbsp;&nbsp;[s:7]&nbsp;&nbsp;[s:7]&nbsp;&nbsp;[s:7]]]></description>
 <link><![CDATA[http://121.40.142.80/read.php?tid=1735#5112]]></link>
 <author><![CDATA[kasim]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Sun, 03 May 2009 04:21:14 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[执行过程如下：

服务器端：
[root@FriendlyARM tcp_login]# ./server_arm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 ..]]></description>
 <link><![CDATA[http://121.40.142.80/read.php?tid=1735#5111]]></link>
 <author><![CDATA[caler]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Sun, 03 May 2009 04:09:48 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[好的，多谢！

/* server.c */

#include &lt;sys/types.h&gt;
#include &lt;sys/socket.h&gt;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;errno.h&gt;
#include &lt;string.h&gt;
#include &lt;unistd.h&gt;
#include &lt;netinet/in.h&gt;
#define PORT 2222
#define LISTEN 10
#define MAX_REC ..]]></description>
 <link><![CDATA[http://121.40.142.80/read.php?tid=1735#5110]]></link>
 <author><![CDATA[caler]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Sun, 03 May 2009 04:05:50 +0000]]></pubdate>
</item>
<item>
 <title><![CDATA[]]></title>
 <description><![CDATA[贴出服务器和客户端程序的源代码]]></description>
 <link><![CDATA[http://121.40.142.80/read.php?tid=1735#5109]]></link>
 <author><![CDATA[kasim]]></author>
 <category><![CDATA[Linux技术交流区]]></category>
 <pubdate><![CDATA[Sun, 03 May 2009 04:01:47 +0000]]></pubdate>
</item>
</channel></rss>