CLIENTSERVER APPLICATION FILE SERVER 030523313 Network programming Asst

  • Slides: 30
Download presentation
CLIENT/SERVER APPLICATION (FILE SERVER) 030523313 - Network programming Asst. Prof. Dr. Choopan Rattanapoka

CLIENT/SERVER APPLICATION (FILE SERVER) 030523313 - Network programming Asst. Prof. Dr. Choopan Rattanapoka

Flow Chart to Code (1) start ���� socket ���� server ����� Object: Buffered. Reader

Flow Chart to Code (1) start ���� socket ���� server ����� Object: Buffered. Reader ��� Socket

Source Code : File. List. java

Source Code : File. List. java

Flow Chart to Code (2) start ����� Object: Print. Writer ��� Socket ����� Object:

Flow Chart to Code (2) start ����� Object: Print. Writer ��� Socket ����� Object: File ������� : list() ������������� Client ���� 1 ������ socket end

Source Code : File. Server. List. java

Source Code : File. Server. List. java

Client-Server Communication Client Server

Client-Server Communication Client Server

Flow Chart to Code (1) start ������� ไมมแฟมขอมล upload ������ �� server error ?

Flow Chart to Code (1) start ������� ไมมแฟมขอมล upload ������ �� server error ? มแฟมขอมล ���� socket ���� end server ����� Object: Buffered. Reader, Print. Writer ��� Socket ������� server

Source Code : File. Upload. java

Source Code : File. Upload. java

Flow Chart to Code (1) start ����� Object: Buffered. Reader, Print. Writer ��� Socket

Flow Chart to Code (1) start ����� Object: Buffered. Reader, Print. Writer ��� Socket �������� Client ����� Object : File ���������� Client

Source Code : File. Server. Upload. java

Source Code : File. Server. Upload. java

Flow Chart : Client (Download) start ���� socket ���� server ����� Object: Buffered. Reader,

Flow Chart : Client (Download) start ���� socket ���� server ����� Object: Buffered. Reader, Print. Writer ��� Socket ������� server A A ������ NOK ������ Server ������� error OK end ������� Server ����������� end

Flow Chart to Code (1) start ���� socket ���� server ����� Object: Buffered. Reader,

Flow Chart to Code (1) start ���� socket ���� server ����� Object: Buffered. Reader, Print. Writer ��� Socket ������� server

Source Code : File. Download. java

Source Code : File. Download. java

Flow Chart to Code (1) start ����� Object: Buffered. Reader, Print. Writer ��� Socket

Flow Chart to Code (1) start ����� Object: Buffered. Reader, Print. Writer ��� Socket �������� Client ����� Object : File ���������� Client

Source Code : File. Server. Download. java

Source Code : File. Server. Download. java