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 |
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
|
|
|
Goto Forum:
Current Time: Sun May 19 17:42:01 CEST 2024
Total time taken to generate the page: 0.00842 seconds
|