UDP Socket problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UDP Socket problem

Jump to solution
556 Views
same
Contributor II

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

Labels (1)
Tags (2)
0 Kudos
1 Solution
377 Views
same
Contributor II

Fixed.

I have forgotten that I had disabled UDP in user config file.

View solution in original post

0 Kudos
1 Reply
378 Views
same
Contributor II

Fixed.

I have forgotten that I had disabled UDP in user config file.

0 Kudos