This shows you the differences between two versions of the page.
sde2:laboratoare:10_rust [2023/05/15 23:01] cristiana.andrei [Bibliographie] |
sde2:laboratoare:10_rust [2023/05/15 23:50] (current) cristiana.andrei [TP 10 - Socket] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== TP 10 - Socket ====== | ====== TP 10 - Socket ====== | ||
+ | |||
+ | <note warning> | ||
+ | Vous devez **accepter** le assignment d'ici et travailler avec ce repository: [[https://classroom.github.com/a/_yii16eB|Lab10]] | ||
+ | </note> | ||
===== Objectifs ===== | ===== Objectifs ===== | ||
Line 174: | Line 178: | ||
* Singlethreaded web server [[https://doc.rust-lang.org/book/ch20-01-single-threaded.html|en]], [[https://jimskapt.github.io/rust-book-fr/ch20-01-single-threaded.html|fr]] | * Singlethreaded web server [[https://doc.rust-lang.org/book/ch20-01-single-threaded.html|en]], [[https://jimskapt.github.io/rust-book-fr/ch20-01-single-threaded.html|fr]] | ||
* A simple TCP server [[https://www.youtube.com/watch?v=RJS6wMMwiA8]] | * A simple TCP server [[https://www.youtube.com/watch?v=RJS6wMMwiA8]] | ||
+ | * Rust TcpListener [[https://doc.rust-lang.org/std/net/struct.TcpListener.html]] | ||
+ | * Rust net::Shutdown [[https://doc.rust-lang.org/std/net/enum.Shutdown.html]] | ||
- | ===== Sujets ===== | + | ===== Exercices ===== |
- | - Clonez le [[https://github.com/UPB-FILS-SdE2/Solutions]] | + | <note important> |
- | - Exécutez le programme dans tp9/ex1. Répondez aux questions posées par le programme. | + | Executer la commande ''sudo apt install netcat'' avant de resoudre les exercices. |
+ | </note> | ||
+ | |||
+ | - Exécutez le programme dans ex1. | ||
- Résolvez les lignes TODO (dans l'ordre) à partir de ex1. | - Résolvez les lignes TODO (dans l'ordre) à partir de ex1. | ||
- Résolvez les lignes TODO (dans l'ordre) de ex2. | - Résolvez les lignes TODO (dans l'ordre) de ex2. |