| Sample Go applications. |
| |
| echo_client, echo_server - sample applications that talk to each other |
| |
| http_handler - application that implements HTTP server; uses the mojo HTTP |
| Server service to handle the HTTP protocol details, and just contains the logic |
| for handling its registered urls. |
| |
| http_server - application that implements HTTP server; uses go net stack on top |
| of the mojo network service. |
| |
| Setup instructions (use the --android flag in each command to build/run on |
| Android): |
| |
| 1) Follow Build instructions in the src/README.md file |
| |
| 2) Build |
| $ mojo/tools/mojob.py gn |
| $ mojo/tools/mojob.py build |
| |
| 3) Run |
| To run echo client: |
| $ mojo/devtools/common/mojo_run --enable-multiprocess mojo:go_echo_client |
| |
| To run http handler: |
| $ mojo/devtools/common/mojo_run --enable-multiprocess mojo:go_http_handler |
| |
| To run http server: |
| $ mojo/devtools/common/mojo_run --enable-multiprocess mojo:go_http_server |