Skip to content

Transfer text files from one device to another using LAN

Notifications You must be signed in to change notification settings

L0puh/transfer_text_files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TRANSFER TEXT FILES 💻

Transfer text files - provides sending text files from one device to another using LAN, which is useful when you want to quickly and clearly share your file locally. Just run a server on one device and the client on the other...

Usage (unix system):

execute the shell script in your terminal for compiling. then use binary files by ./server and ./client

bash script.sh

or you can use g++

  1. compile a server
g++ src/server.cpp src/ttf_net.cpp src/ttf_server.cpp -o server 
  1. compile a client
g++ src/client.cpp src/ttf_net.cpp src/ttf_client.cpp -o client

❗ NB: all files put in "files/client_files/" and "files/server_files/" folders or check out configuration to declarate your path. for sending a file, just type the filename and file extension (file.txt)

configuration:

set in your ./bashrc or ./zshrc a path to files. $TTF_client for folder with files to send and $TTF_server for path to recieving files on another computer.

export TTF_client="path/to/your/folder" #send files
export TTF_server="path/to/your/folder" #recieve files

example

example.gif - example of getting started

in the future:

  • script for bash
  • web client?
  • tg-bot / discord bot

About

Transfer text files from one device to another using LAN

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published