资源简介

S2010开发的,使用C#语言,采用多线程,1服务器,N客户端 双向发送文件,文字信息。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Threading;
using Rocky;
using System.Net;

namespace Client
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Write(“Plz type in a file path.“);
            //string file = Console.ReadLine();
            //FileTransmiter.Send(FileTransmitor.TestIP file);
            FileTransmiter.Listen(“192.168.100.180“ 6666);
            Thread.Sleep(5000);
            IPEndPoint TestIP = new IPEndPoint(IPAddress.Parse(“192.168.100.96“) 6666);
            FileTransmiter.Send(TestIP “E:\\1.wmv“);
            FileTransmiter.Send(TestIP “E:\\1.wmv“);
            FileTransmiter.Send(TestIP “E:\\1.wmv“);
            FileTransmiter.Send(TestIP “E:\\1.wmv“);
            FileTransmiter.Send(TestIP “E:\\1.wmv“);
            FileTransmiter.Send(TestIP “E:\\1.wmv“);
            FileTransmiter.Send(TestIP “E:\\1.wmv“);
            FileTransmiter.Send(TestIP “E:\\1.wmv“);
            FileTransmiter.Send(TestIP “E:\\1.wmv“);
            FileTransmiter.Send(TestIP “E:\\1.wmv“);
            Console.ReadLine();
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       5120  2014-07-22 15:34  FileSender\Client\bin\Debug\Client.exe

     文件      11776  2014-07-22 15:34  FileSender\Client\bin\Debug\Client.pdb

     文件      14328  2014-07-22 14:48  FileSender\Client\bin\Debug\Client.vshost.exe

     文件        490  2009-06-11 05:14  FileSender\Client\bin\Debug\Client.vshost.exe.manifest

     文件      12255  2014-07-22 14:47  FileSender\Client\bin\Debug\exec.log

     文件       7680  2014-07-22 15:34  FileSender\Client\bin\Debug\FileTransmitor.dll

     文件      15872  2014-07-22 15:34  FileSender\Client\bin\Debug\FileTransmitor.pdb

     文件      17923  2014-07-21 17:34  FileSender\Client\bin\Debug.rar

     文件       2711  2010-06-01 10:38  FileSender\Client\Client.csproj

     文件       1535  2014-07-22 15:34  FileSender\Client\obj\Debug\Client.csproj.FileListAbsolute.txt

     文件       5120  2014-07-22 15:34  FileSender\Client\obj\Debug\Client.exe

     文件      11776  2014-07-22 15:34  FileSender\Client\obj\Debug\Client.pdb

     文件       3249  2014-07-22 15:34  FileSender\Client\obj\Debug\ResolveAssemblyReference.cache

     文件       1226  2014-07-22 14:41  FileSender\Client\Program.cs

     文件       1416  2010-06-01 10:31  FileSender\Client\Properties\AssemblyInfo.cs

     文件       7680  2014-07-22 15:34  FileSender\FileSender\bin\Debug\FileTransmitor.dll

     文件      15872  2014-07-22 15:34  FileSender\FileSender\bin\Debug\FileTransmitor.pdb

     文件       7504  2014-07-22 15:34  FileSender\FileSender\FileTransmitor.cs

     文件       2555  2010-06-01 10:35  FileSender\FileSender\FileTransmitor.csproj

     文件        666  2010-06-01 09:08  FileSender\FileSender\obj\Debug\FileSender.csproj.FileListAbsolute.txt

     文件       7168  2010-06-01 10:30  FileSender\FileSender\obj\Debug\FileSender.exe

     文件      17920  2010-06-01 10:30  FileSender\FileSender\obj\Debug\FileSender.pdb

     文件       1189  2014-07-22 15:34  FileSender\FileSender\obj\Debug\FileTransmitor.csproj.FileListAbsolute.txt

     文件       7680  2014-07-22 15:34  FileSender\FileSender\obj\Debug\FileTransmitor.dll

     文件      15872  2014-07-22 15:34  FileSender\FileSender\obj\Debug\FileTransmitor.pdb

     文件       3584  2014-07-10 14:10  FileSender\FileSender\obj\Debug\Refactor\FileTransmitor.dll

     文件       1424  2010-05-31 15:24  FileSender\FileSender\Properties\AssemblyInfo.cs

     文件       1872  2010-06-01 10:35  FileSender\FileSender.sln

    ..A..H.     47616  2014-07-22 14:43  FileSender\FileSender.suo

     文件       7680  2014-07-22 15:34  FileSender\Server\bin\Debug\FileTransmitor.dll

............此处省略39个文件信息

评论

共有 条评论