Skip to content

Latest commit

 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic_Network_Programming_Project

This is our project for educational purposes.

FTP

  • File Tranfer Protocol
  • Port 21 for issuing commands. For example:
C:\Users\PC>ftp
ftp> help
Commands may be abbreviated.  Commands are:

!               delete          literal         prompt          send
?               debug           ls              put             status
append          dir             mdelete         pwd             trace
ascii           disconnect      mdir            quit            type
bell            get             mget            quote           user
binary          glob            mkdir           recv            verbose
bye             hash            mls             remotehelp
cd              help            mput            rename
close           lcd             open            rmdir
ftp> quit

C:\Users\PC>
  • Port 20 for tranfering files during active mode session. For example, get <filename> is downloading <filename> from server. put <filename> is uploading <filename> to server.

Xem thêm tại:

FTP Client

Sử dụng socket - kết nối TCP. Giao diện gồm mấy thứ tạm tạm như này.

1. Sign up

  • Port 21

2. Sign in

  • Port 21

3. Upload file

  • Port 21 - Gọi hàm xử lý
  • Port 20 - Truyền file

4. Download file

  • Port 21 - Gọi hàm xử lý
  • Port 20 - Truyền file

5. Get list of files

  • Port 21

FTPS

FTP Server

Server listen Client -> nếu có yêu cầu kết nối

  • Kiểm tra đăng nhập
  • Gửi message cho client

Overview

FTP có 3 phương thức truyền dữ liệu là : stream mode, block mode và compressed mode

Mã thông điệp

LoginStatusCode

DownloadStatusCode UploadStatusCode

Xem thêm tại: https://luanvan.net.vn/luan-van/do-an-tim-hieu-ve-giao-thuc-ftp-32410/

About

This is our project for educational purposes.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages