Code Monkey home page Code Monkey logo

enet_tests's Introduction

enet_tests

code snippets for initial enet tests

  1. make build scripts for server and client using g++
  2. use snippets from here to make client and server

notes

Generating flatbuffer files

  • instead of installing binaries of flatbuffer, compile the specific version using cmake -- it will generate the flatc binary. to generate the command
  • usually, there is a flatbuffer submodule under third_party
  • build it using these instructions
  • generate code from a schema : cd schema && ./parse_schema -- this will generate *_generated.h files
  • if you need a mutating flatbuffer, use the --gen-mutable flag after calling the executable
  • for mutating flatbuffer, you might have to set all the fields first

how are fb sent to and forth between two programs using enet?

    1. robot_signal_builder (struct) : has flatbufferbuilder, enet_server, and an enet_peer
    1. send_signal (method): to either build a new buffer or mutate an existing buffer and sennd a packet over enet
  • the pointer to the robot_signal_build can be passed to other threads that can then then call the send_signal methods when needed to send the buffer to enet peers.
  • these, along with enet operations, can be packaged into a network_base.h header file

enet_tests's People

Contributors

othayoth avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.