UDP Socket problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

UDP Socket problem

跳至解决方案
736 次查看
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

标签 (1)
标记 (2)
0 项奖励
回复
1 解答
557 次查看
same
Contributor II

Fixed.

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

在原帖中查看解决方案

0 项奖励
回复
1 回复
558 次查看
same
Contributor II

Fixed.

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

0 项奖励
回复