Giter Club home page Giter Club logo

Comments (8)

fire avatar fire commented on June 26, 2024

https://hex.pm/packages/libsodium dependent library

from netcode.

gafferongames avatar gafferongames commented on June 26, 2024

OK sounds good!

from netcode.

fire avatar fire commented on June 26, 2024

Do you have a series of tests? Looking for something that goes from the simple features to the more complicated ones.

from netcode.

gafferongames avatar gafferongames commented on June 26, 2024

Yes, the tests are at the bottom of netcode.c:

https://github.com/networkprotocol/netcode.io/blob/master/c/netcode.c

from netcode.

fire avatar fire commented on June 26, 2024

@gafferongames Can you generate some samples of the connect token / connect token data packets? I'm currently trying to write a decoder for it.

https://github.com/fire/netcode/blob/master/lib/netcode/ConnectTokenData.ex
https://github.com/fire/netcode/blob/master/lib/netcode/ConnectToken.ex

from netcode.

gafferongames avatar gafferongames commented on June 26, 2024

Can you call into C from Elixir? The Rust guy called into C for test data as needed, and then gradually replaced those portions with Rust code. This might be a good strategy for your port?

For example:

int netcode_generate_connect_token( int num_server_addresses,
NETCODE_CONST char ** server_addresses,
int expire_seconds,
uint64_t client_id,
uint64_t protocol_id,
uint64_t sequence,
NETCODE_CONST uint8_t * private_key,
uint8_t * connect_token );

from netcode.

fire avatar fire commented on June 26, 2024

Well my approach is to use an elixir implementation of the code, but it's possible to write a shared library that is loaded into elixir.

I'll take a look.

from netcode.

gafferongames avatar gafferongames commented on June 26, 2024

Yes I just mean as a transition, obviously you end up with 100% Elixir in the end.

from netcode.

Related Issues (20)

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.