A kiválasztott változat és az aktuális verzió közötti különbségek a következők.
Előző változat mindkét oldalon Előző változat Következő változat | Előző változat | ||
tanszek:oktatas:tcp_socket_connection [2023/02/26 15:52] knehez [2.) Hagyományos UDP alapú kommunikáció] |
tanszek:oktatas:tcp_socket_connection [2023/02/27 09:16] (aktuális) knehez [Exercise 1.] |
||
---|---|---|---|
Sor 1: | Sor 1: | ||
====== Socket client and server exercises ====== | ====== Socket client and server exercises ====== | ||
- | ==== TCP style ==== | + | ==== Exercise 1. ==== |
Create a simplified FTP (file transport) client and server where the client can send or download text files from the server: | Create a simplified FTP (file transport) client and server where the client can send or download text files from the server: | ||
Sor 9: | Sor 9: | ||
-) Server sends back the list of the downloadable files | -) Server sends back the list of the downloadable files | ||
-) Client lists the files and asks the user what action they want to take? Upload or download? ('u' or 'd') | -) Client lists the files and asks the user what action they want to take? Upload or download? ('u' or 'd') | ||
- | -) In both cases the uses must give the full file name with extension | + | -) In both cases users must give the full file name with extension |
-) The client sends the selected file to the server (upload) or downloads the selected file from the server to a specific directory. | -) The client sends the selected file to the server (upload) or downloads the selected file from the server to a specific directory. | ||
Sor 28: | Sor 28: | ||
-) If you press "u", /files/ is sent to the server | -) If you press "u", /files/ is sent to the server | ||
- | ==== Starting point of implementation ==== | + | ==== TCP style ==== |