AnsweredAssumed Answered

UDP Socket problem

Question asked by sam s on Apr 9, 2013
Latest reply on Apr 9, 2013 by sam s

Hi everyone,

I am trying to run udp stream in my device. I wrote the below code:

 

addr.sin_family = AF_INET;
  addr.sin_port = 10000;
  addr.sin_addr.s_addr = IPADDR(192,168,1,176);
  sock = socket(PF_INET, SOCK_DGRAM, 0);
  result = connect(sock, &addr, sizeof(addr));

 

but I got this Linker error:

>Undefined : "SOCK_DGRAM_CALL"

>Referenced from "RTC_Init" in

 

does anyone know the solution?

regards

Outcomes