• 大小: 25.78M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: websocket  Socket  web  BS  C#  

资源简介

分为客户端和服务端两个。
服务端启用后可最小化到托盘,也可以双击查看控制台,可以主动发送消息给客户端。
客户端打开,链接服务端,实现客户端与服务端交互。

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace ConsoleApplication1
{
    /// 
    /// 控制台帮助类
    /// 

    public class ConsoleHelper
    {
        ///   
        /// 获取窗口句柄  
        /// 
  
        ///   
        ///   
        ///   
        [DllImport(“user32.dll“ SetLastError = true)]
        private static extern IntPtr FindWindow(string lpClassName string lpWindowName);

        ///   
        /// 设置窗体的显示与隐藏  
        /// 
  

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

     文件        189  2020-03-21 12:46  webScoket\ConsoleApplication1\ConsoleApplication1\App.config

     文件      10240  2020-03-26 15:59  webScoket\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe

     文件        189  2020-03-21 12:46  webScoket\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.exe.config

     文件      26112  2020-03-26 15:59  webScoket\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.pdb

     文件      24224  2020-03-26 15:59  webScoket\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.vshost.exe

     文件        189  2020-03-21 12:46  webScoket\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.vshost.exe.config

     文件        490  2019-03-19 12:46  webScoket\ConsoleApplication1\ConsoleApplication1\bin\Debug\ConsoleApplication1.vshost.exe.manifest

     文件      44032  2020-03-21 18:54  webScoket\ConsoleApplication1\ConsoleApplication1\bin\Debug\Fleck.dll

     文件       1150  2020-03-22 11:17  webScoket\ConsoleApplication1\ConsoleApplication1\bin\Debug\img\favicon.ico

     文件       3235  2020-03-26 15:50  webScoket\ConsoleApplication1\ConsoleApplication1\ConsoleApplication1.csproj

     文件       6309  2020-03-26 15:58  webScoket\ConsoleApplication1\ConsoleApplication1\ConsoleHelper.cs

     文件       1387  2020-03-26 15:59  webScoket\ConsoleApplication1\ConsoleApplication1\obj\Debug\ConsoleApplication1.csproj.FileListAbsolute.txt

     文件      12492  2020-03-26 15:50  webScoket\ConsoleApplication1\ConsoleApplication1\obj\Debug\ConsoleApplication1.csprojResolveAssemblyReference.cache

     文件      10240  2020-03-26 15:59  webScoket\ConsoleApplication1\ConsoleApplication1\obj\Debug\ConsoleApplication1.exe

     文件      26112  2020-03-26 15:59  webScoket\ConsoleApplication1\ConsoleApplication1\obj\Debug\ConsoleApplication1.pdb

     文件       7353  2020-03-26 11:44  webScoket\ConsoleApplication1\ConsoleApplication1\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件          0  2020-03-21 12:46  webScoket\ConsoleApplication1\ConsoleApplication1\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2020-03-21 12:46  webScoket\ConsoleApplication1\ConsoleApplication1\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2020-03-21 12:46  webScoket\ConsoleApplication1\ConsoleApplication1\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件        133  2020-03-21 18:54  webScoket\ConsoleApplication1\ConsoleApplication1\packages.config

     文件       3070  2020-03-26 16:00  webScoket\ConsoleApplication1\ConsoleApplication1\Program.cs

     文件       1362  2020-03-21 12:46  webScoket\ConsoleApplication1\ConsoleApplication1\Properties\AssemblyInfo.cs

     文件       1537  2020-03-22 10:57  webScoket\ConsoleApplication1\ConsoleApplication1.sln

    ..A..H.     57856  2020-03-26 16:01  webScoket\ConsoleApplication1\ConsoleApplication1.v12.suo

     文件        189  2020-03-22 10:50  webScoket\ConsoleApplication1\ConsoleApplication2\App.config

     文件       7168  2020-03-22 10:59  webScoket\ConsoleApplication1\ConsoleApplication2\bin\Debug\ConsoleApplication2.exe

     文件        189  2020-03-22 10:50  webScoket\ConsoleApplication1\ConsoleApplication2\bin\Debug\ConsoleApplication2.exe.config

     文件      17920  2020-03-22 10:59  webScoket\ConsoleApplication1\ConsoleApplication2\bin\Debug\ConsoleApplication2.pdb

     文件      24224  2020-03-22 11:00  webScoket\ConsoleApplication1\ConsoleApplication2\bin\Debug\ConsoleApplication2.vshost.exe

     文件        189  2020-03-22 10:50  webScoket\ConsoleApplication1\ConsoleApplication2\bin\Debug\ConsoleApplication2.vshost.exe.config

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

评论

共有 条评论