?? subject_43503.htm
字號(hào):
<p>
序號(hào):43503 發(fā)表者:流流 發(fā)表日期:2003-06-11 18:29:45
<br>主題:一個(gè)組播源代碼
<br>內(nèi)容:這里有一個(gè)組播源代碼<BR><BR>可是在接收數(shù)據(jù)時(shí),第一次能收到,以后就收不到了,請(qǐng)高手<BR>指教
<br><a href="javascript:history.go(-1)">返回上頁(yè)</a><br><a href=http://www.copathway.com/cndevforum/>訪問(wèn)論壇</a></p>
<hr size=1>
<blockquote><p>
回復(fù)者:流流 回復(fù)日期:2003-06-12 07:54:25
<br>內(nèi)容:大家?guī)蛶兔Γ?lt;BR> ret = WSAAsyncSelect(m_hGroupSocket, m_hWnd, WM_MULTIPOINTEVENT, <BR> FD_WRITE | FD_READ | FD_QOS | FD_GROUP_QOS | FD_CONNECT);<BR>注冊(cè)窗口怎么只能收到第一次的消息,第二次就收不到了<BR><BR>不解。。。
<br>
<a href="javascript:history.go(-1)">返回上頁(yè)</a><br><a href=http://www.copathway.com/cndevforum/>訪問(wèn)論壇</a></p></blockquote>
<hr size=1>
<blockquote><p>
回復(fù)者:流流 回復(fù)日期:2003-06-12 11:27:08
<br>內(nèi)容:怎么沒(méi)有人看看呀,大俠都哪里去了<BR>
<br>
<a href="javascript:history.go(-1)">返回上頁(yè)</a><br><a href=http://www.copathway.com/cndevforum/>訪問(wèn)論壇</a></p></blockquote>
<hr size=1>
<blockquote><p>
回復(fù)者:流流 回復(fù)日期:2003-06-13 14:05:37
<br>內(nèi)容:是這個(gè)問(wèn)題太簡(jiǎn)單還是太難?給個(gè)答復(fù)吧
<br>
<a href="javascript:history.go(-1)">返回上頁(yè)</a><br><a href=http://www.copathway.com/cndevforum/>訪問(wèn)論壇</a></p></blockquote>
<hr size=1>
<blockquote><p>
回復(fù)者:jasic 回復(fù)日期:2003-06-16 16:47:00
<br>內(nèi)容: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
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -