bool TmtSocketServer::Initial(int remoteRecvPort, char * remoteRecvIp, int localRecvPort, char* localRecvIP, int localSendPort, char * localSendIP, DWORD optionFlag) { ForceEnd(); if (!SetOption(optionFlag)) { return false; } else { bool isOK = SetSendAddr(remoteRecvPort, remoteRecvIp, localSendPort, localSendIP); isOK &= SetRecvAddr(localRecvPort, localRecvIP); return isOK; } }
void TurboNRF24L01::SetRecvAddr(const char * addr) { SetRecvAddr((const uint8_t*)addr); }