UDP Socket problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,179件の閲覧回数
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 解決策
1,000件の閲覧回数
same
Contributor II

Fixed.

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

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
1,001件の閲覧回数
same
Contributor II

Fixed.

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

0 件の賞賛
返信