下载 Client using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Net; using System.Net.Sockets; using System.Threading; using System.IO; using System.Windows.Forms; namespace S
public sealed class SocketData { private SocketData() { } public static SendFileMode SendFile(Socket socket, string fileName, int maxBufferLength) { SendFileMode flag = SendFileMode.Success; try { using (Stream fs = new FileStream(fileName, FileMode.