|
-
January 9th, 2009, 03:01 PM
#8
Re: Broadcasting in UDP
salve scorrpeio,
Something looks a bit dubious.
Are you positive on this line: m_RemoteAdd.sin_port = htonl( INADDR_BROADCAST ); ?
INADDR_BROADCAST is usually a placeholder for the bcast addr 255.255.255.255.
You should pass a port number. INADDR_BROADCAST is equivalent to 0xffffffff.
sin_port being an unsigned short gives you portnumber 65535. Is this your intended usage ?
Also check the send/receive buffer sizes.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|