Advertisement

Detect Lan game server

Started by May 21, 2001 09:41 AM
10 comments, last by wedgeboy 23 years, 8 months ago
Actually the broadcast address is 255.255.255.255. In order to send to that address using Winsock you MUST set the socket option SO_BROADCAST to TRUE. If you don''t you will get an Access Denied error for that socket when you try to send to the broadcast address (INADDR_BROADCAST).

Just look at the above code guys, it does work - honestly


Dire Wolf
www.digitalfiends.com
[email=direwolf@digitalfiends.com]Dire Wolf[/email]
www.digitalfiends.com
Check this out for more information on classes of IP addresses and the broadcast IP address (255.255.255.255)

http://www.ora.com/reference/dictionary/terms/I/IP_Address.htm



Dire Wolf
www.digitalfiends.com
[email=direwolf@digitalfiends.com]Dire Wolf[/email]
www.digitalfiends.com

This topic is closed to new replies.

Advertisement