Try my new website: www.urcho.com - the new SIMPLE social network
blitz code snippets Sign up | 357 members | 125 snippets
Search for:

Username:
Password:


getSubnetMask() & getBroadcastAddress() by Jeremy Alessi

[back]
Author: Archive | Viewed: 1033 times | Language: BlitzBasic 3D | Category: Multiplayer Code
Author Comments:
This combo adds getSubnetMask() to Blitz3D via a .dll and userlib that I wrote in Visual C++ and additionally adds a getBroadcastAddress() function written in Blitz which can be used to ping a LAN of any network class type. I originally created this to "fix" BlitzPlay which is limited to a class-C network assumption and additionally doesnt even use the broadcast address for that assumption but instead pings 255 ip addresses. With this code multiplayer LAN searches can be conducted instantly on any network class. Heres a link to the .dll/userlib www.alessigames.com/codeArchives/ipHelper.zip Theres a onesComplement() function included as well which is used in the getBroadcastAddress() function.
Login or create an account to comment on this snippet