gm_voxelate icon indicating copy to clipboard operation
gm_voxelate copied to clipboard

Refactor Networking

Open MDFL64 opened this issue 7 years ago • 2 comments

MDFL64 avatar Jun 08 '17 01:06 MDFL64

C++ networking now uses structs. I'm using a nasty compiler hack to compile the structs with the exact offsets. I'm not sure if this will be a problem in platforms that don't use msvc/gcc. We'll have to see.

If we have any further issues with the new networking style, I suggest going for a better solution like protobufs.


Lua networking should stop using the bitbuf from sourcenet and instead use a lua implemented bitbuf


For now I'm happy with your networking mode (first byte decides where the packet is routed) I'll see where I can take this in the future.

SwadicalRag avatar Oct 27 '17 08:10 SwadicalRag

Checklist:

  • [x] Fix C++ networking and replace C++ bitbuf with structs
  • [ ] Remove gm_sourcenet and lua bindings to the C++ bitbuf

SwadicalRag avatar Oct 27 '17 08:10 SwadicalRag