Difficulty compiling BNetEX on BlitzMax-NG

Started by Kippykip, December 14, 2019, 14:33:26

Previous topic - Next topic

Kippykip

Bruuuuh, since the beginning of upgrading to BlitzMax-NG I've always been running into issues with older modules.
The one I'm trying to use is BNetEx:
https://github.com/oliverskawronek/bnetex.mod

Which based on BNet (Doesn't work anymore due to big SuperStrict/Strict clashes)
http://www.eiksoft.com/multi/multi.htm

It's starts off with errors like:
Identifier 'gethostbyname_' not found.

But after commenting some lines out, I get difficult errors such as:
Cannot convert from Void to Int.
Varptr(info.Netmask), Varptr(info.Broadcast)) Then Return False

Any advice on how I can get this working? Or is there an alternative networking module around for BlitzMax?

Derron

Did not test it for years now:
https://github.com/TVTower/TVTower/tree/master/source/external/bnetex


It is IPv4 ... and sooner or later you will need to write some stuff concerning IPv6 ... Brucey already updated some modules some weeks ago, dunno if that interfers with my bnetex adjustments already, were only using bnetex for broadcasts in LAN.


bye
Ron

Brucey

So, what's BNet?
BlitzMax comes with Pub.Enet, and BRL.GNet.

Is BNet some "other" networking thing?

Pub.Enet was re-written to use a latest fork of ENet which supports IPV6. In the process, GNet was updated to support those changes.
BRL's socket stuff was also updated/modified to support a modern API with IPV6 and IPV4.

Derron

At that time the module/lib/code was the easiest available way to do udp/tcp "raw" network packages. Just try to broadcast a network package with enet/gnet. In IPv4 this is used to eg. announce a local network game via the local network (ex 192.168.0.1/255)


bye
Ron

Kippykip

Woah I wasn't even aware these modules were preinstalled, I think GNet might be the way to go, thanks guys!