Network module for BlitzMax based on ENet (https://github.com/lsalzman/enet)
Quote from http://enet.bespin.org/:
ENet's purpose is to provide a relatively thin, simple and robust network communication layer on top of UDP (User Datagram Protocol). The primary feature it provides is optional reliable, in-order delivery of packets.
ENet omits certain higher level networking features such as authentication, lobbying, server discovery, encryption, or other similar tasks that are particularly application specific so that the library remains flexible, portable, and easily embeddable.
- Copy the folder mzehr.mod and all of its content to <BlitzMax installation directory>/mod.
- Go to the <BlitzMax installation directory>/bin folder.
- Execute the bmk executable to build the module for your platform:
bmk makemods -a mzehr.net
- (Optional) Execute
docmods
to update the module documentation.
- Open the files ExampleServer.bmx and ExampleClient.bmx in the BlitzMax IDE or in your preferred IDE.
- Compile both of them separately.
- Run the ExampleServer executable first.
- Run two instances of the ExampleClient executable.
- Now you should see two players in both of the clients.
- You can control them with the arrow keys and they should move on both clients in the exact same way.