Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » OS Problems etc., Win32, POSIX, MacOS, FreeBSD, X11 etc » UDP - XP does not receive frames in recvfrom
UDP - XP does not receive frames in recvfrom [message #33739] Fri, 09 September 2011 14:28 Go to previous message
arkady_c is currently offline  arkady_c
Messages: 14
Registered: December 2010
Location: Polska
Promising Member
Howk,

I use to communicate <Web/Web.h>
win7 and Linux is the communication works.
g = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP);
int optval = 1;
setsockopt(g, SOL_SOCKET, SO_BROADCAST, (const char*)&optval, sizeof optval);
adr.sin_family = PF_INET;
adr.sin_port = htons(UDP_PORT);
adr.sin_addr.s_addr = htonl(INADDR_ANY);
retx = bind(g, (sockaddr *) &adr, sizeof(adr));
ret = recvfrom(g, frame, sizeof(frame), 0, (sockaddr *) &nad, &ret1);

the compilation of XPsp3 sends a frame the controller sends back but now that recvfrom is not receiving.
or met someone with a problem on the part of XP in receiving the UDP?
Ethereal checked the frame from the driver goes a good frame but unable to recvfrom

I greet all!!



2a7aff6be3f76940495be32258777636
 
Read Message
Read Message
Read Message
Previous Topic: BUG: FreeBSD debugging
Next Topic: WordPress requires a pre-running website or blog?
Goto Forum:
  


Current Time: Sun Jul 21 09:37:02 CEST 2024

Total time taken to generate the page: 0.01282 seconds