tanszek:oktatas:tcp_socket_connection
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tanszek:oktatas:tcp_socket_connection [2023/02/26 15:51] – [Exercise] knehez | tanszek:oktatas:tcp_socket_connection [2023/02/27 09:16] (current) – [Exercise 1.] knehez | ||
---|---|---|---|
Line 1: | Line 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: | ||
Line 9: | Line 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? (' | -) Client lists the files and asks the user what action they want to take? Upload or download? (' | ||
- | -) 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. | ||
Line 28: | Line 28: | ||
-) If you press " | -) If you press " | ||
- | ====== Starting point of implementation ====== | + | ==== TCP style ==== |
Line 175: | Line 176: | ||
} | } | ||
</ | </ | ||
- | ==== 2.) Hagyományos | + | ==== Traditional |
- | 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 |
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. | ||
tanszek/oktatas/tcp_socket_connection.1677426685.txt.gz · Last modified: 2023/02/26 15:51 by knehez