{intret;char*recv_buf =newchar[65535];char*send_buf =newchar[65535];memset(recv_buf,0,65535);memset(send_buf,0,65535);recv_data(sock, recv_buf);if(m_clients_list.size() ==1) {if((ret = send(sock, NO_CONNECTION,strlen(NO_CONNECTION),0)) ==-1) {cout<<"send to myself err...
the data are put to the receive buffer by the inter-frame of data, the da 在做法时打开二环型缓冲,当定义一种设备,并且二点为每缓冲被设定,点的名字是RecvHeadRecvTailSendHead,并且SendTail.The中断引起,当接受数据时框架,数据被投入对接受缓冲由帧间数据,数据被投入对接受缓冲由中断作用,并且RecvTail点...
8);if(errno != ONEWIRE_NO_ERROR)returnFALSE;break;case0x55:// MATCH ROMrecvData(addr,8);if(errno != ONEWIRE_NO_ERROR)returnFALSE;for(inti=0; i<8; i++)if(rom[i] != addr[i])returnFALSE;returnTRUE;