Skip to content

ncheungg/p2p-file-transfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

P2P File Transfer

A peer to peer file transferring application written in C using TCP and UCP sockets

Server

The server facilitates client connections, file registrations, file download requests, and file deregistrations.

Client

A client can do any of the following:

  • Connect to the server
  • Register a file to be downloaded
    • A new port on the client's connection is opened
  • Browse registered files
  • Download a listed file
    • Makes a new connection to the client via UDP to facilitate file download
    • Registers file to server once downloaded
  • Deregister a file
    • The listed port is closed on the client
  • Disconnect from the server
    • All registered files will be automatically deregistered

Setup

$ gcc server.c -o server
$ gcc client.c -o client

Server

$ ./server <SERVER_PORT>

Client

$ ./client <SERVER_ADDRESS> <SERVER_PORT> <CLIENT_PORT>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages