An easy way to transfer file with any size on network with tcp protocol.
Install-Package EasyFileTransfer -Version 0.1.5
- import the EasyFileTransfer library:
using EasyFileTransfer;
- for server at first you should start the EftServer:
EftServer server = new EftServer(saveTo, port);
System.Threading.Thread thread = new System.Threading.Thread(server.StartServer);
thread.Start();
- for client you can send file with this line:
EftClient.Send(Path/to/file, serverIP, serverPort);
it's finished. you can enjoy that. don't forget star this repository. :)
sample screenshots like this:
Server | Client |
---|---|