Online and Network Tutorials

BlitzMax Forums/BlitzMax Tutorials/Online and Network Tutorials

The Forsworn(Posted 2008) [#1]
I didn't found one...
Where's a useful tutorial for this part of programming in BM?

Would be really glad, if you can give me a few links.

And, hell, I know there will be some guys saying: "Search for it" and so on
I did search! I just didn't find much...
Where's the problem in sharing information about those good tutorials?

regards


tonyg(Posted 2008) [#2]
Where's a useful tutorial for this part of programming in BM?

Does this help? or this or this ?

Would be really glad, if you can give me a few links

As above.
And, hell, I know there will be some guys saying: "Search for it" and so on
I did search! I just didn't find much...

Oh, sorry. I found these by searching the Tutorial forum with 'Network' but, I guess, you have seen them already. Let me know what they don't cover and I'll search for you some more.
Where's the problem in sharing information about those good tutorials?
None at all. In fact, I look forward to your tutorial when you release it.


The Forsworn(Posted 2008) [#3]
I found the first one... but I missed an explanation of what bnet and gnet is...
What's the different between them?
Where do I get them?


tonyg(Posted 2008) [#4]
Bnet (or Bnetex) is a user created Network module.
GNet is the Bmax supplied network module.
There is also KNetlib, Tnet and Raknet (somewhere).
You have Gnet as part of Bmax and have to search for Raknet. KnetLib might be tricky to find the BMax module and none of them, other than GNet, seem to be developed/supported.
KNetlib
TNet


G-Lyst(Posted 2008) [#5]
What one is more stable GNet or BNet?


Trader3564(Posted 2008) [#6]
I read ENet is the best?

GNet: is not for performance. Its scheme is for fullscale object replication. At best, an MMO could be done with it but even there you would waste lots of bandwidth.

BNetEx: Fast, but no reliable option

RakNet: not free, not sure if a wrapper to the most current version exists. It offers a lot of stuff which makes it very powerfull. But also needs significantly more time to get into, understand it and integrate it.

ENet: Present through Pub.ENet (its the base for GNet). Fast, simple, offers reliable.



I used to make one on raw sockets.. But i ran into some hardships with packet security. Im not even sure of any of these libs offers it.


deps(Posted 2008) [#7]
My impression of gnet was that it really is quite fast, since it sends what needs to be sent and you don't have to waste bandwith by sending uneeded stuff.
For example, if you move a npc only in the X direction you don't send a MOVE packet with the new X and Y values, since gnet will just send the new X value. Of course, your could create your own MOVE, MOVE_X and MOVE_Y packets (using efnet for example), but then you will end up with a big heap of different packet types and most will almost never be used.


Hardcoal(Posted 2012) [#8]
any simple code example of basic networking in blitzmax?


Hardcoal(Posted 2012) [#9]
any simple code example of basic networking in blitzmax?