d8514
驱动牛犊
驱动牛犊
  • 注册日期2002-07-30
  • 最后登录2004-02-26
  • 粉丝0
  • 关注0
  • 积分0分
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 原创分0分
  • 专家分0分
阅读:1558回复:0

请问哪位用过winsnmp中的snmplisten函数

楼主#
更多 发布于:2004-02-23 13:35
if(pSnmp.sessionID==FALSE)
{
pSnmp.CreateSession(CEmulator_MFCDlg::m_hWnd,wMsg);
pSnmp.sessionID=TRUE;
}
if((pSnmp.entity=SnmpStrToEntity(pSnmp.session,"192.168.0.170"))==SNMPAPI_FAILURE)
AfxMessageBox("SendMsg failure--entity");
if(SnmpListen(pSnmp.entity,SNMPAPI_ON )!=SNMPAPI_SUCCESS)
AfxMessageBox("SnmpListen failure--entity");
调试到SnmpListen执行时返回错"An error occurred in the network transport layer while trying to bind a socket for the entity specified by the hEntity parameter."
那位高手能指点一下的
游客

返回顶部