Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.
/ P2P_FileShare Public archive

p2p file sharing system using http protocol

Notifications You must be signed in to change notification settings

monleak/P2P_FileShare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

P2P_FileShare

This is an image

Define your own P2P file sharing protocol

  • A tracking server to maintain information about files to be shared and locations of those files
  • Tracking server return the file’s information to a client
  • Clients work together to get the requested file

How to use my code

  1. Setup Server:
    1. Run cd Server
    2. Run gcc FSserver.c -o FSserver
    3. Run ./FSserver to run tracking server
  2. Setup Client:
    1. Run cd Client
    2. Run gcc FSClient.c -o FSClient
    3. Run ./FSClient <port> to run client with port. This port is not the port of the tracking server.

Help command

These commands are used on the client side.

===========================[COMMAND LIST]=============================
Usage: fs <command>


help                        Hiển thị hướng dẫn

list [-p <page>]            Lấy danh sách các file đang được share
find <filename>             Tìm kiếm file theo tên

downloadLocation <path>     Đặt đường dẫn của thư mục chứa file
                            download
download <ID> [-p <pass>]   Yêu cầu download file
share <path> [-p <pass>]    Share file với đường dẫn
                            Không được đặt pass là "****"

quit                        Ngắt kết nối với server
======================================================================

About

p2p file sharing system using http protocol

Topics

Resources

Stars

Watchers

Forks

Languages