


Toute ressemblance avec des enseignements existant
ou ayant existé ne serait que pure coïncidence.

> sudo pip install twisted
> git clone git@github.com/gabadie/yotta.git yotta
> python yotta/src_daemon/daemon.py --port 5000

void
hello_world(foo_t const * bar);
int
main()
{
// [...]
foo_t bar;
bar.what = ever;
yotta_context_massive(&context, hello_world, sizeof(bar), &bar);
// [...]
}

(Mais pas de SVN ...)


void
hello_world(yotta_addr_t master_ptr)
{
foo_t bar;
yotta_sync_t fetch_done;
yotta_sync_t push_done;
yotta_fetch_package(master_ptr, sizeof(bar), &bar, &fetch_done);
yotta_sync_wait(&fetch_done);
bar.what = ever;
yotta_push_package(master_ptr, sizeof(bar), &bar, &push_done);
yotta_sync_wait(&push_done);
}
(Mais ceci n'est pas de la cuisine ...)
(La communauté italienne remarquera que nous n'avons pas écrit "spaghettis" (avec un "s"))
void
hello_world(foo_t * bar);
void
main()
{
// [...]
foo_t bar;
bar.what = ever;
yotta_dispatch(hello_world, &bar);
// [...]
}


Merci à Lionel Brunie de nous avoir offert une occasion dans
la 4IF de faire quelque chose qui nous plait, essentiel pour le
moral des troupes mis à rude épreuve par notre formation.