User Tools

Site Tools


tanszek:oktatas:tcp_socket_connection

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tanszek:oktatas:tcp_socket_connection [2023/02/26 15:51] – [Exercise] kneheztanszek: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? ('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.
  
Line 28: Line 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 ==== 
  
  
Line 175: Line 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.
  
tanszek/oktatas/tcp_socket_connection.1677426685.txt.gz · Last modified: 2023/02/26 15:51 by knehez