| OLD | NEW |
| 1 Sample Go applications. | 1 Sample Go applications. |
| 2 | 2 |
| 3 echo_client, echo_server - sample applications that talk to each other | 3 echo_client, echo_server - sample applications that talk to each other |
| 4 | 4 |
| 5 http_handler - application that implements HTTP server; uses the mojo HTTP | 5 http_handler - application that implements HTTP server; uses the mojo HTTP |
| 6 Server service to handle the HTTP protocol details, and just contains the logic | 6 Server service to handle the HTTP protocol details, and just contains the logic |
| 7 for handling its registered urls. | 7 for handling its registered urls. |
| 8 | 8 |
| 9 http_server - application that implements HTTP server; uses go net stack on top | 9 http_server - application that implements HTTP server; uses go net stack on top |
| 10 of the mojo network service. | 10 of the mojo network service. |
| 11 | 11 |
| 12 Setup instructions (use the --android flag in each command to build/run on | 12 Setup instructions (use the --android flag in each command to build/run on |
| 13 Android): | 13 Android): |
| 14 | 14 |
| 15 1) Follow Build instructions in the src/README.md file | 15 1) Follow Build instructions in the src/README.md file |
| 16 | 16 |
| 17 2) Build | 17 2) Build |
| 18 $ mojo/tools/mojob.py gn | 18 $ mojo/tools/mojob.py gn |
| 19 $ mojo/tools/mojob.py build | 19 $ mojo/tools/mojob.py build |
| 20 | 20 |
| 21 3) Run | 21 3) Run |
| 22 To run echo client: | 22 To run echo client: |
| 23 $ mojo/tools/mojo_shell.py --enable-multiprocess mojo:go_echo_client | 23 $ mojo/devtools/common/mojo_shell --enable-multiprocess mojo:go_echo_client |
| 24 | 24 |
| 25 To run http handler: | 25 To run http handler: |
| 26 $ mojo/tools/mojo_shell.py --enable-multiprocess mojo:go_http_handler | 26 $ mojo/devtools/common/mojo_shell --enable-multiprocess mojo:go_http_handler |
| 27 | 27 |
| 28 To run http server: | 28 To run http server: |
| 29 $ mojo/tools/mojo_shell.py --enable-multiprocess mojo:go_http_server | 29 $ mojo/devtools/common/mojo_shell --enable-multiprocess mojo:go_http_server |
| OLD | NEW |