• 大小: 0.20M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: tcp  文件  文件传输  c  消息  

资源简介

分为客户端和服务器两个部分,对获得的数据有装包和拆包操作

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

namespace ChatClient
{
    /// 
    /// App.xaml 的交互逻辑
    /// 

    public partial class App : Application
    {
        public App()
        {
            System.Diagnostics.Process proc = System.Diagnostics.Process.GetCurrentProcess();
            int count = System.Diagnostics.Process.GetProcesses().Where(p =>
                p.ProcessName == proc.ProcessName).Count();

            if (count > 1)
                App.Current.Shutdown();
        }
    }
}

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

     文件       3529  2017-10-20 15:05  Chat\Chat.sln

    ..A..H.     99328  2017-10-26 16:59  Chat\Chat.suo

     文件        321  2017-10-11 11:26  Chat\ChatClient\App.xaml

     文件        655  2017-10-12 14:43  Chat\ChatClient\App.xaml.cs

     文件      19968  2017-10-23 17:05  Chat\ChatClient\bin\Debug\ChatClient.exe

     文件      46592  2017-10-23 17:05  Chat\ChatClient\bin\Debug\ChatClient.pdb

     文件      11600  2017-10-23 14:15  Chat\ChatClient\bin\Debug\ChatClient.vshost.exe

     文件        490  2010-03-17 22:39  Chat\ChatClient\bin\Debug\ChatClient.vshost.exe.manifest

     文件        381  2017-10-20 15:26  Chat\ChatClient\bin\Debug\ConfigersForClient.xml

     文件      17408  2017-10-23 17:05  Chat\ChatClient\bin\Debug\NetWorkSocket.dll

     文件      40448  2017-10-23 17:05  Chat\ChatClient\bin\Debug\NetWorkSocket.pdb

     文件       4563  2017-10-20 16:13  Chat\ChatClient\ChatClient.csproj

     文件       1680  2017-10-13 14:57  Chat\ChatClient\Converts.cs

     文件       5477  2017-10-17 17:41  Chat\ChatClient\MainWindow.xaml

     文件       7606  2017-10-23 14:10  Chat\ChatClient\MainWindow.xaml.cs

     文件       2215  2017-10-23 17:05  Chat\ChatClient\obj\x86\Debug\App.g.cs

     文件       2215  2017-10-26 14:08  Chat\ChatClient\obj\x86\Debug\App.g.i.cs

     文件       3509  2017-10-23 14:31  Chat\ChatClient\obj\x86\Debug\ChatClient.csproj.FileListAbsolute.txt

     文件      19968  2017-10-23 17:05  Chat\ChatClient\obj\x86\Debug\ChatClient.exe

     文件       4864  2017-10-23 17:05  Chat\ChatClient\obj\x86\Debug\ChatClient.g.resources

     文件      46592  2017-10-23 17:05  Chat\ChatClient\obj\x86\Debug\ChatClient.pdb

     文件        180  2017-10-23 14:31  Chat\ChatClient\obj\x86\Debug\ChatClient.Properties.Resources.resources

     文件        249  2017-10-23 17:05  Chat\ChatClient\obj\x86\Debug\ChatClient_MarkupCompile.cache

     文件        221  2017-10-26 14:08  Chat\ChatClient\obj\x86\Debug\ChatClient_MarkupCompile.i.cache

     文件        127  2017-10-26 14:08  Chat\ChatClient\obj\x86\Debug\ChatClient_MarkupCompile.i.lref

     文件        151  2017-10-23 17:05  Chat\ChatClient\obj\x86\Debug\ChatClient_MarkupCompile.lref

     文件      19881  2017-10-19 09:07  Chat\ChatClient\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6432  2017-10-26 14:08  Chat\ChatClient\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件          7  2017-10-23 17:05  Chat\ChatClient\obj\x86\Debug\GeneratedInternalTypeHelper.g.cs

     文件       2922  2017-10-26 14:08  Chat\ChatClient\obj\x86\Debug\GeneratedInternalTypeHelper.g.i.cs

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

评论

共有 条评论