亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

請教一下,在mfc中,關于Accept函數的問題?

請教一下,在mfc中,關于Accept函數的問題?

BIG陽 2021-07-15 21:11:48
mfc 在主程序中使用cslisten.Accept(aa)正常,可以連接并傳送消息,cslisten ,aa均為CSocket變量,而將cslisten.Accept(aa)放在線程中編譯連接不報錯,運行到這里時出現Debug Assertion Failed.
查看完整描述

1 回答

?
白豬掌柜的

TA貢獻1893條經驗 獲得超10個贊

FD_CLOSE: Only valid on connection-oriented sockets (for example, SOCK_STREAM) When WSAAsyncSelect called, if socket connection has been closed. After remote system initiated graceful close, when no data currently available to receive (Be aware that, if data has been received and is waiting to be read when the remote system initiates a graceful close, the FD_CLOSE is not delivered until all pending data has been read). After local system initiates graceful close with shutdown and remote system has responded with "End of Data" notification (for example, TCP FIN), when no data currently available to receive. When remote system terminates connection (for example, sent TCP RST), and lParam will contain WSAECONNRESET error value. Note FD_CLOSE is not posted after closesocket is called.

查看完整回答
反對 回復 2021-07-18
  • 1 回答
  • 0 關注
  • 390 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號