Пример #1
0
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;
	}
}
Пример #2
0
void TurboNRF24L01::SetRecvAddr(const char * addr)
{
	SetRecvAddr((const uint8_t*)addr);
}