Chinaunix首页 | 论坛 | 博客
  • 博客访问: 560479
  • 博文数量: 493
  • 博客积分: 2891
  • 博客等级: 少校
  • 技术积分: 4960
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-17 17:11
文章分类

全部博文(493)

文章存档

2010年(493)

分类:

2010-04-28 14:25:02

Linux下设置端口权限的系统调用有两个:ioperm和iopl
 
cpp file start
#ifndef WIN32
#else
    #include "stdafx.h"
#endif //WIN32
#include "tcpthread.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
 
CThread::CThread()
{
 INFOX_CreateEvent(m_hEvent, NULL,TRUE,FALSE,NULL);
    m_bExited = FALSE;
   
#ifndef WIN32
    // 不初始化,若不为NULL在未调用start线程就调用stop停止线程
    //存在问题(CDrvManager::ReturnFreeHandle)
    //m_hThread = NULL;
    m_hThread = 0;//zxp
#else
#endif
}//lint !e1401
阅读(557) | 评论(0) | 转发(0) |
0

上一篇:read_cfg

下一篇:交换

给主人留下些什么吧!~~