• 大小: 2.5MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-11-08
  • 语言: C#
  • 标签:

资源简介

客户端根据服务器端的指令弹出提示窗口(c#源码) 使用了networkcomms2.3.1框架 ,资源中也有下载

资源截图

代码片段和文件信息


//networkcomms v3.x商业版 官方授权  正版销售
//www.networkcomms.cn (建设中 )
//www.cnblogs.com/networkocmms
//淘宝购买 推广期间 八折优惠  http://shop115882994.taobao.com/  机会不容错过
//您可在英文网站上购买 九折折扣代码: NCDN_PRCLW (贝宝支付)
//授权方式  一次性授权 独立开发者版本  企业版本  提供源码用于学习
//邮件咨询: networkcomms@126.com
//企业版 249英镑/每开发者  独立开发者版 149英镑/每开发者  私人版 19英镑/每开发者 
//淘宝上购买 v3商业版 好评后赠送 v3版本的4个demo  包含自动升级 和微风IM 
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Net;
using Microsoft.Win32;

using System.Collections.objectModel;

using NetworkCommsDotNet;
 
using DPSbase;

namespace AppServer
{
    public partial class Form1 : Form
    {
        private object syncLocker = new object();

        private ConnectionInfo connnectionInfo;

        public ConnectionInfo ConnecitonInfo
        {
            get { return connnectionInfo; }
            set { connnectionInfo = value; }
        }

        private Connection connection;

        public Connection Connection
        {
            get { return connection; }
            set { connection = value; }
        }

        public Form1()
        {
            InitializeComponent();
            
        }

        private void button1_Click(object sender EventArgs e)
        {
            StartListening();
            this.button1.Text = “开始监听“;
            this.button1.Enabled = false;
        }


        private void StartListening()
        {
            //配置日志记录器
        
            
            string strIP = txtIP.Text;
            int port = int.Parse(txtPort.Text);

          
            TCPConnection.StartListening(new IPEndPoint(IPAddress.Parse(strIP) port) false);
          

        }

       

        private void button2_Click(object sender EventArgs e)
        {
            try
            {
                lock (syncLocker)
                {

                    foreach (Connection conn in NetworkComms.GetExistingConnection())
                    {
                        conn.Sendobject(“DocsNotify“txtMessage.Text );

                    }
                }
            }
            catch (Exception ex)
            {
              
            }
        }

        private void Form1_FormClosing(object sender FormClosingEventArgs e)
        {
            NetworkComms.Shutdown();
        }
      

    }
}

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

     文件       4122  2015-02-04 17:05  ServerNotifySource\AppServer\AppServer.csproj

     文件          3  2015-02-04 17:04  ServerNotifySource\AppServer\bin\Debug\官方授权 正版销售.txt

     文件      10240  2015-02-04 17:06  ServerNotifySource\AppServer\bin\Release\AppServer.exe

     文件      26112  2015-02-04 17:06  ServerNotifySource\AppServer\bin\Release\AppServer.pdb

     文件      38400  2015-01-26 14:34  ServerNotifySource\AppServer\bin\Release\DPSbase.dll

     文件     105984  2015-01-26 14:34  ServerNotifySource\AppServer\bin\Release\DPSbase.pdb

     文件      62761  2015-01-26 14:34  ServerNotifySource\AppServer\bin\Release\DPSbase.xml

     文件        138  2015-02-04 15:24  ServerNotifySource\AppServer\bin\Release\logFiles\2月第1周 ServerLogFile_4uIF92JarEarWqjtiKnRWg.txt

     文件       8105  2015-02-04 16:50  ServerNotifySource\AppServer\bin\Release\logFiles\2月第1周 ServerLogFile_aqVnEYa4CEOETu5phgtJ7A.txt

     文件        138  2015-02-04 16:48  ServerNotifySource\AppServer\bin\Release\logFiles\2月第1周 ServerLogFile_Ca_6dc2uEkC2dm3zn7HS-g.txt

     文件        138  2015-02-04 15:26  ServerNotifySource\AppServer\bin\Release\logFiles\2月第1周 ServerLogFile_najbmnZTnECXwkSKWY-L3Q.txt

     文件      21921  2015-02-04 16:52  ServerNotifySource\AppServer\bin\Release\logFiles\2月第1周 ServerLogFile_uWGY0rKGrE6jsDKedo1fWg.txt

     文件        206  2015-02-04 15:25  ServerNotifySource\AppServer\bin\Release\logFiles\2月第1周 ServerLogFile_wKdUqbk-fEeLrXPSCIMHCA.txt

     文件        138  2015-02-04 15:26  ServerNotifySource\AppServer\bin\Release\logFiles\2月第1周 ServerLogFile_wRNk2_Ga3U-Epu03zkhKYA.txt

     文件        205  2015-02-04 15:25  ServerNotifySource\AppServer\bin\Release\logFiles\2月第1周 ServerLogFile_YhmLkhx3_kSSiHseJ4Ay_A.txt

     文件     143872  2015-01-26 21:34  ServerNotifySource\AppServer\bin\Release\NetworkCommsDotNet.dll

     文件     259584  2015-01-26 21:34  ServerNotifySource\AppServer\bin\Release\NetworkCommsDotNet.pdb

     文件     172305  2015-01-26 21:34  ServerNotifySource\AppServer\bin\Release\NetworkCommsDotNet.xml

     文件     387584  2013-12-19 11:55  ServerNotifySource\AppServer\bin\Release\NLog.dll

     文件     187392  2013-12-19 11:55  ServerNotifySource\AppServer\bin\Release\protobuf-net.dll

     文件     630272  2014-10-04 17:11  ServerNotifySource\AppServer\bin\Release\protobuf-net.pdb

     文件     156123  2014-10-04 17:11  ServerNotifySource\AppServer\bin\Release\protobuf-net.xml

     文件      13824  2015-02-04 15:13  ServerNotifySource\AppServer\bin\Release\ProtobufSerializer.pdb

     文件       1319  2015-02-04 15:13  ServerNotifySource\AppServer\bin\Release\ProtobufSerializer.xml

     文件      43008  2015-01-26 14:34  ServerNotifySource\AppServer\bin\Release\SevenZipLZMACompressor.dll

     文件     138752  2015-01-26 14:34  ServerNotifySource\AppServer\bin\Release\SevenZipLZMACompressor.pdb

     文件       3701  2015-01-26 14:34  ServerNotifySource\AppServer\bin\Release\SevenZipLZMACompressor.xml

     文件          3  2015-02-04 17:04  ServerNotifySource\AppServer\bin\Release\官方授权 正版销售.txt

     文件          3  2015-02-04 17:04  ServerNotifySource\AppServer\bin\官方授权 正版销售.txt

     文件       2824  2015-02-04 17:06  ServerNotifySource\AppServer\Form1.cs

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

评论

共有 条评论

相关资源