Hi all,I have successfully send out UDP sockets and now I'm trying to send out UDP broadcast messages. I'm using client example.
In my opinion,i should do this:
m_SocketHandle = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
setOptionResult = setsockopt(this->m_SocketHandle,SOL_SOCKET,SO_BROADCAST,(char*)&bOptVal,bOptLen); //added code
but fdError() shows that error code is 22 which means "EINVAL 22 // Invalid argument" according to serrno.h.
what else should i do to build a udp broadcast client socket?
By the way,I have scanned the forum and realized that NDK cannot run simultaneously on two cores or more.Is that true?please confirm it.