RakNet Wrapper 0.5 Released

Blitz3D Forums/Blitz3D Userlibs/RakNet Wrapper 0.5 Released

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

So after some research, I conclude that it won't be easy to wrap RackNet for BlitzMax. It is possible, but it will require some non negligible work (and, no, I am not candidate ;-)

Racknet is written in C++ with objects and BlitzMax is able to import *only* methods which are virtual. Of course, none of the method in RackNet are virtual, so it's impossible to import directly the functions/methods.

So one of the solution is to wrap in C the C++ method. In fact in the C function you have to make a call to the method in C++ (see mod/Pub.Mod/freeAudio.Mod for an example of what I mean). So every functions that you want to export, you need a C function that wraps it. And then BlitzMax is able to call directly this function.

But this is a lot of work...

I am not a wrapper expert at all, so are other confirming what I just said?I would be happy that someone prove me wrong...