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:51] knehez [Starting point of implementation] |
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 ==== |
| Sor 175: | Sor 176: | ||
| } | } | ||
| </code> | </code> | ||
| - | ==== 2.) Hagyományos UDP alapú kommunikáció ==== | + | ==== Traditional UDP style ==== |
| - | 2.a) the following Agent sends a message and waits for a response on port 8080, also with UDP. In the Eclipse IDE, the text you type on the console can be sent by pressing ctrl+z | + | The following Agent sends a message and waits for a response on port 8080, also with UDP. In the Eclipse IDE, the text you type on the console can be sent by pressing ctrl+z |
| - | == Exercise == | + | == Exercise 2. == |
| Modify the code so that you can transfer a burned-in name and existing text or image file larger than 2 kbytes and verify that it was successfully sent. | Modify the code so that you can transfer a burned-in name and existing text or image file larger than 2 kbytes and verify that it was successfully sent. | ||