⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subject_43503.htm

📁 一些关于vc的问答
💻 HTM
字号:
<p>
序号:43503 发表者:流流 发表日期:2003-06-11 18:29:45
<br>主题:一个组播源代码
<br>内容:这里有一个组播源代码<BR><BR>可是在接收数据时,第一次能收到,以后就收不到了,请高手<BR>指教
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
回复者:流流 回复日期:2003-06-12 07:54:25
<br>内容:大家帮帮忙,<BR>&nbsp;&nbsp;&nbsp;&nbsp;ret = WSAAsyncSelect(m_hGroupSocket, m_hWnd, WM_MULTIPOINTEVENT, <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FD_WRITE | FD_READ | FD_QOS | FD_GROUP_QOS | FD_CONNECT);<BR>注册窗口怎么只能收到第一次的消息,第二次就收不到了<BR><BR>不解。。。
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:流流 回复日期:2003-06-12 11:27:08
<br>内容:怎么没有人看看呀,大侠都哪里去了<BR>
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:流流 回复日期:2003-06-13 14:05:37
<br>内容:是这个问题太简单还是太难?给个答复吧
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:jasic 回复日期:2003-06-16 16:47:00
<br>内容:i have read the program written by you!<BR>actually, i cannt specify the incorrectness happened in your program!<BR>but i ever encountered such problem.so i have some experience on how to solve the problem,Now some advice will be shared with you.i hope it is helpful to you!<BR>you'd better implemente it not by the function "wsarecvfrom ",provided by the system,instead by "recvfrom". because when we make use of the iternet message mechanisms by wsaasynselect ,we should pay more attention the reenablity of function!(please refer to the wsaasynselect in msdn).that is to say,<BR>"The Ws2_32.dll will not continually flood an application with messages for a particular network event. Having successfully posted notification of a particular event to an application window, no further message(s) for that network event will be posted to the application window until the application makes the function call that implicitly reenables notification of that network event."<BR>so when you receive the first messages such as FD_READ, you should call corresponding function that implicitly reenables notification of that network event.actually the wsarecvfrom belongs to the one which can reenable the FD_READ of network event!however i donnt know this function does not work ,but the recefrom can do !<BR>this is why you can receive the messages in the first time,and in the following <BR>time ,no messages will be received !<BR>replace wsarecvfrom with recvfrom! that's ok!<BR><BR>that's all!<BR><BR>2003-6-16 16:49:42

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -