8/16/2011 4:36:53 PM

 

8/16/2011 4:36:53 PM
 
 
设置了IP和端口

可能是SDK的问题

是不是编码器类型不对

改了2个明显的错误

注册要的时候太长了


 unsigned int Opt = 1;
 tcp_keepalive live,liveout; 
 live.keepaliveinterval=10000;
 live.keepalivetime=10000;
 live.onoff=TRUE; 
 int ret = setsockopt(acceptsocket,SOL_SOCKET,SO_KEEPALIVE,(char *)&Opt,sizeof(int)); 

 if(ret == 0)
 {
  DWORD dw;
  char tmp[512];
  if(WSAIoctl(acceptsocket,SIO_KEEPALIVE_VALS,&live,sizeof(live),&liveout,sizeof(liveout),&dw,NULL,NULL) == SOCKET_ERROR)
  {
   sprintf(tmp,"WSAIoctl SIO_KEEPALIVE_VALS  failed \n");
   AMP_PS_DEBUG(tmp);
      return 0;
  }
  else
  {
  // char tmp[512];
   sprintf(tmp,"WSAIoctl SIO_KEEPALIVE_VALS  liveout.keepaliveinterval %d  \n",liveout.keepaliveinterval);
   AMP_PS_DEBUG(tmp);
  }
 } 


检查一下这个是否是正确的


  Query oSQLQueryEpCount(NULL);
oSQLQueryEpCount << "SELECT count(*) AS Endpoint_Count FROM Endpoint WHERE IP_Address = " << strTempIP;
Result oSQLResultEpCount;
bool bSQLReturnEpCount = this->m_pVWallMySQL->GetResult(oSQLQueryEpCount.preview(),oSQLResultEpCount);


现在就是图像录制上传出错

都有问题

是手机端软件的问题

 

 

 

8/17/2011 1:21:50 PM


现在在查提示

首先打开媒体通道

现在看一下String

怎么这么慢?

你可能感兴趣的:(tcp,String,socket,null,手机)