Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 编程语言 > C/C++ > elu
【标  题】:elu
【关键字】:elu
【来  源】:http://blog.csdn.net/Nada_Red/archive/2006/01/02/568368.aspx

elu

Your Ad Here

class CAsyncSocketExHelperWindow; class CAsyncSocketExLayer; class CCriticalSectionWrapper; class CAsyncSocketEx : public CObject { DECLARE_DYNAMIC(CAsyncSocketEx) public: //Attaches a new layer to the socket. BOOL AddLayer(CAsyncSocketExLayer *pLayer); //Trigers an event on the socket // Any combination of FD_READ, FD_WRITE, FD_CLOSE, FD_ACCEPT, FD_CONNECT and FD_FORCEREAD is valid for lEvent. BOOL TriggerEvent(long lEvent); protected: //Strucure to hold the socket data struct t_AsyncSocketExData { SOCKET hSocket; //Socket handle int nSocketIndex; //Index of socket, required by CAsyncSocketExHelperWindow } m_SocketData; //If using layers, only the events specified with m_lEvent will send to the event handlers. long m_lEvent; //Critical section for thread synchronization static CCriticalSectionWrapper m_sGlobalCriticalSection; //Pointer to the data of the local thread struct t_AsyncSocketExThreadData { CAsyncSocketExHelperWindow *m_pHelperWindow; int nInstanceCount; DWORD nThreadId; } *m_pLocalAsyncSocketExThreadData; //List of the data structures for all threads static struct t_AsyncSocketExThreadDataList { t_AsyncSocketExThreadDataList *pNext; t_AsyncSocketExThreadData *pThreadData; } *m_spAsyncSocketExThreadDataList; //Initializes Thread data and helper window, fills m_pLocalAsyncSocketExThreadData BOOL InitAsyncSocketExInstance(); //Layer chain CAsyncSocketExLayer *m_pFirstLayer; CAsyncSocketExLayer *m_pLastLayer; friend CAsyncSocketExLayer; //Called by the layers to notify application of some events virtual int OnLayerCallback(const CAsyncSocketExLayer *pLayer, int nType, int nParam1, int nParam2); friend CAsyncSocketExHelperWindow; };

广东2005下半年 软件资格水平考试查询:【上一篇】
[翻译] Effective C++, 3rd Edition, Chapter 1. 习惯于 C++:【下一篇】
【相关文章】
  • 最好的拼图游戏Puzzle Master Deluxe4
  • 精灵小巧 Delux 灵动DLV B16摄像头
  • Sherk --绝对经典,当再看一次时,又发现Hallelujah这首歌也不一般的爽
  • MAGIX PHOTOS ON CD AND DVD V4.0 DELUXE 影像制作
  • Red Hat Deluxe Workstation 7.1评测
  • Speaking Clock Deluxe V3.05 算法分析
  • 【随机文章】
  • VSS信息的读取的操作
  • win2k运行进程详解
  • Linux下 vpn 的配置
  • MartinFowler: IOC, not IOC Container
  • jsp计数器代码
  • RAID6、RAID-DP及其他“准RAID6”原理
  • uboot 在 ARM s3c2410 上移植过程
  • 一个用session实现微型购物篮的例子
  • 硬盘数据恢复之软件篇
  • 一个用c#写的扫描asp源码漏洞的应用程序(1)
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.