Ooops
August 14, 2020, 11:46:52 PM

Author Topic: Difficulty compiling BNetEX on BlitzMax-NG  (Read 512 times)

Offline Kippykip

  • Full Member
  • ***
  • Posts: 122
    • Kippykip Forums!
Difficulty compiling BNetEX on BlitzMax-NG
« on: December 14, 2019, 02:33:26 PM »
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?

Offline Derron

  • Hero Member
  • *****
  • Posts: 3096
Re: Difficulty compiling BNetEX on BlitzMax-NG
« Reply #1 on: December 14, 2019, 02:52:27 PM »
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

Offline Brucey

  • Full Member
  • ***
  • Posts: 133
Re: Difficulty compiling BNetEX on BlitzMax-NG
« Reply #2 on: December 15, 2019, 06:08:29 PM »
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.

Offline Derron

  • Hero Member
  • *****
  • Posts: 3096
Re: Difficulty compiling BNetEX on BlitzMax-NG
« Reply #3 on: December 15, 2019, 08:01:29 PM »
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

Offline Kippykip

  • Full Member
  • ***
  • Posts: 122
    • Kippykip Forums!
Re: Difficulty compiling BNetEX on BlitzMax-NG
« Reply #4 on: December 23, 2019, 02:58:47 PM »
Woah I wasn't even aware these modules were preinstalled, I think GNet might be the way to go, thanks guys!

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal