Forum Discussion
Altera_Forum
Honored Contributor
15 years agoUDP Socket in Niche Stack
Hi Can Any one Help me plz in Niche stack.I want to know that how can we create a udp socket in Nichestack and send data or listen this socket to receive data. Its Urgent.......................
Altera_Forum
Honored Contributor
15 years agoHi Sir,
I did manage to send UDP packet with DM9000A PHY/MAC using Altera DE2 board. Since i am using window, i am using the winsock program instead of bsd to receive the udp packet as show in the link below: http://www.codeproject.com/kb/ip/udptime.aspx But the code hang at the code line below: recvfrom(sd, (char *)¤t_time, (int)sizeof(current_time), 0, (struct sockaddr *)&server, &server_length) < 0) Anybody have experience using winsock here? Please give me some help. Thanks.