使用wsaasyncselect模型,当有数据到来的时候会触发网络事件FD_READ,那么怎么触发FD_WRITE事件呢?就是说当我按下发送按扭时,按扭响应函数里应该怎么做?怎样触发FD_WRITE事件?
请各位大侠帮忙,谢谢了,谢谢了!!
请各位大侠帮忙,谢谢了,谢谢了!!
解决方案 »
- 用api贴图问题 苦逼啊 解决不了啊 给您跪下了 超出我的知识范围了
- 请高手帮忙看看这段代码错误出在哪里?
- 在结构体中定义了一个数组char a[100];,那么,定义这个结构体时,a变量被系统分配多少内存,即a占用了多少内存?
- 100分急求VC6.0英文版!!
- 超级难的问题,win32的回调机制是如何现实的?
- 推荐VC组件(Visual assist)
- 请教手机软件开发人员一些简单的问题??
- 1>MyForm.cpp(100): error C2857: 在源文件中没有找到用 /YcStdAfx.h 命令行选项指定的“#include”语句
- 在MFC中如何实现COM+组件的客户端调用COM+组件
- 关于BCB和VC的问题,高手一定要来看一下!
- ActiveX的两个小问题
- 如何在SQL里写这句话:?
这不需要你去触发The FD_WRITE event is handled slightly differently. An FD_WRITE message is posted when a socket is first connected with connect or WSAConnect (after FD_CONNECT, if also registered) or accepted with accept or WSAAccept, and then after a send operation fails with WSAEWOULDBLOCK and buffer space becomes available. Therefore, an application can assume that sends are possible starting from the first FD_WRITE message and lasting until a send returns WSAEWOULDBLOCK. After such a failure the application will be notified that sends are again possible with an FD_WRITE message.