Flytcpframework originated from a popular C # asynchronous TCP communication library on the Internet. I have made some sorting and extended functions, and added the file transfer function, A msdn-style manual is created.
Class diagram:
Usage: Download the source code and open the source code solution. The solution contains four items:
Flytcpframework: Class Library
Ppclient: PDA client demo
Ppserver: Server demo
Winclient: winform client demo
Modify the IP address of the ppserver listener, run ppserver, enter start to start listening, run winclient, modify the IP address in the text box, and click Connect. Then you can test the text sending file, the logic on the server side is to return the text sent by the client, and return the file name sent by the client. The file storage address is input in the constructor. The demo contains the root directory of the d drive. You can also modify the file.
Demo and source code: Download
Manual: Download