#udp #communication #layer #sending #listen #nc

escalon

UDP communication layer for the Escalon project

18 releases

0.1.17 Oct 25, 2023
0.1.16 Oct 24, 2023
0.1.12 Sep 28, 2023
0.1.0 Aug 29, 2023

#1594 in Network programming

Download history 19/week @ 2024-09-20 2/week @ 2024-09-27

185 downloads per month
Used in escalon-jobs

MIT license

35KB
837 lines

Escalon

notes:

listening

listen udp

nc -ul 65056

sending

should be send from a container...

send join upd

echo -n "{\"action\":{\"Join\":{\"sender_id\":\"TESTER\",\"start_time\":{\"secs_since_epoch\":1695629468,\"nanos_since_epoch\":870772893}}}}" | nc -u -q1 0.0.0.0 65056

send check udp

echo -n "{\"action\":{\"Check\":{\"sender_id\":\"TESTER\",\"jobs\":0}}}" | nc -u -q1 0.0.0.0 65056

TODO:

  • colisión: Existe la posibiliad de asignar tareas de un muerto a un cliente que a muerto en el periodo de espera... debería vovler a comprobar después de la espera...
  • aux.rs: rename to tools.rs...

Implementation tests:

  • docker compose up
    • then kill one

Dependencies

~4–13MB
~153K SLoC