|
|
# Protocole de cummunication entre RCowat et J2K
|
|
|
|
|
|
## Avec CURL
|
|
|
|
|
|
``` bash
|
|
|
curl http://localhost:9999 -X POST -d '{"foo": "bar"}' # any unrecognized json stuff : the model does one time loop
|
|
|
curl http://localhost:9999 -X POST -d '{"command": "step", "nbStep": 10}' # tell the model to loop N times the time loop
|
|
|
curl http://localhost:9999 -X POST -d '{"command": "stop"}' # stop the model, stop listening for commands
|
|
|
curl http://localhost:9999 -X POST -d '{"command": "free"}' # free the model to run until the end, stop listening for commands
|
|
|
```
|
|
|
|
|
|
# En R
|
|
|
|
|
|
C'est le même protocole mais on envoie les requêtes HTTP différemment. |
|
|
\ No newline at end of file |