iPhone does not receive UDP data over WiFi -
with wifi connection, udp data not received. stops at:
recvfrom(sock, buf, recv_buf_size, 0, (sockaddr*)&raddr, (sock_len*)&len);
when run same program in iphone simulator on ethernet works well. missing?
look @ man page.
like so:
recvfrom(msock,recvbuff,1024,0,(struct sockaddr *)&from, &fromlen);
providing parameter values setting correct try in case try:
recvfrom(sock, buf, recv_buf_size, 0, (struct sockaddr *)&raddr, &len);
Comments
Post a Comment