Hi,
I am trying to use UDP to communicate with the cc3000. I am making a server UDP socket on the CC3000.
For this my code is:
ulSocket = socket(AF_INET,SOCK_DGRAM,IPPROTO_UDP).
As I understand you need to perform a bind operation on this socket to bind the server port to it.
For this the code is bind(ulSocket,?,?). My question is what 2 parameters do I enter. The function description says that you should enter a const sockaddr *addr, INT32 addrlen . Suppose I am trying to bind port number 9876 to this socket what do I enter here?
Thanks & regards,
Raven