登录
首页 » c# » c#IOCP服务端

c#IOCP服务端

于 2022-02-02 发布 文件大小:17.50 kB
0 181
下载积分: 2 下载次数: 1

代码说明:

tcp iocp .net下的完成端口服务器代码。iocp代码,已经打包好,可以编译通过,效率很高,支持高并发请求,cpu占用率不高。已经测试过了基本上没啥问题。仅供学习交流使用。 tcp iocp .net下的完成端口服务器代码。iocp代码,已经打包好,可以编译通过,效率很高,支持高并发请求,cpu占用率不高。已经测试过了基本上没啥问题。仅供学习交流使用。 tcp iocp .net下的完成端口服务器代码。iocp代码,已经打包好,可以编译通过,效率很高,支持高并发请求,cpu占用率不高。已经测试过了基本上没啥问题。仅供学习交流使用。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 无人船
    基于STM32的无人船代码,涉及SI44 32数据传输、PID算法、GY- 273罗盘模块和北斗定位等操作。(STM32 based unmanned ship code, involving Si4432 data transmission, PID algorithm, GY - 273 compass module and Beidou Positioning and other operations.)
    2021-01-26 15:58:37下载
    积分:1
  • 2016.12-4上海电机学院电梯课程设计4.0
    使用keil平台与C语言编写的51单片机程序,可以控制电机的转动,达到控制电梯的目的,经proteus仿真验证通过(The 51 single chip computer program written by the Keil platform and the C language can control the rotation of the motor and achieve the purpose of controlling the elevator. It is verified through the Proteus simulation.)
    2018-01-04 09:47:15下载
    积分:1
  • TheLEDScreen
    LED超大屏幕控制方案,适用于大型广告牌等(The LED screen quality control plan, suitable for large billboards, etc)
    2010-11-26 22:05:02下载
    积分:1
  • dailypay
    日常开支记录器,能够满足日常的记账需求,很不错的小软件(Daily expenses recorder, able to meet the daily accounting needs of a very good small software)
    2010-01-26 15:01:06下载
    积分:1
  • MatlabFns
    matlab工具箱 图像的处理 强大 可以看看 函数多(matlab image processing toolbox function can look more powerful)
    2010-12-30 16:42:27下载
    积分:1
  • TMS320C6713eeprom
    说明:  用于完成TMS320C6713的R2PROM的编程以及程序控制(TMS320C6713 the R2PROM used to complete the programming and program control)
    2011-04-07 22:39:43下载
    积分:1
  • DSPF2812 串口实验SCI2
    *工程名:Sci02.pjt * *功  能:使用SCIA模块和PC机进行串口通信,等待PC机上的串口调试软件向DSP发送数据, *        DSP接收到上位机发送的数据之后,将这些数据发回PC机,显示在串口调试软件 *        中。 * *说  明:本实验中SCIA模块的发送和接收采用中断方式实现,空闲线模式波特率为19200, *        通信数据格式为1位停止位,8位数据位,无校验位 * *要  求:掌握SCI通信原理,了解中断方式实现串口通信的特点,能够采用中断方式 *        实现SCI串口通信
    2022-03-14 23:51:39下载
    积分:1
  • 多表代换
    说明:  多表代换的实现。运行在VC++6.0的环境下。(The implementation of multi-table substitution.)
    2020-06-19 09:20:02下载
    积分:1
  • asp.net防刷新(F5) 禁止重复提交 实例(附完整源码)
    实现了用户操作时 刷新导致的重复操作问题。 实现原理如下:   使用一个上下文唯一的票据号,该票据号随页面提交或回发而递增,每当用户与服务器端交互时,代码会提取上次的票据号码并与当前票据号码比较,如果当前票据大于上次的票据,则是提交或回发,否则则识别为刷新。     这种方式会用到HttpMoudel,并在其中操作Session。   使用方法如下:   1、引入dll MsdnExt 压缩包中有2.修改web.config,在 添加以下item:               其中“MsdnModule”是一个名字, “Msdn.RefreshModule”是“Msdn”下的“RefreshModule”类型,“MsdnExt”是程序集的名字 3.引入命名空间 using Msdn; 并修改页面类继承Msdn.Page 4.使用代码  代码:  protected void Button1_Click(object sender, EventArgs e) { if (!IsPageRefresh) Response.Write("按钮事件"); else Response.Write("页面刷新");TrackRefreshState();} MSDNPage.cs 核心代码如下:using System;using System.Web.UI;using System.Web;using System.Text;namespace Msdn{ public class Page : System.Web.UI.Page { #region Constants // *********************************************************** // Constants public const string RefreshTicketCounter = "RefreshTicketCounter"; private const string SetFocusFunctionName = "__setFocus"; private const string SetFocusScriptName = "__inputFocusHandler"; // *********************************************************** #endregion // *********************************************************** // Ctor public Page() { m_focusedControl = ""; // Register a PreRender handler this.PreRender = new EventHandler(RefreshPage_PreRender); } // *********************************************************** // ************************************************************** // Indicates if the page is being viewed in response to F5 hit public bool IsPageRefresh { get { object o = HttpContext.Current.Items[RefreshAction.PageRefreshEntry]; if (o == null) return false; return (bool) o; } } // ************************************************************** // ************************************************************** // Increase the internal counter used to generate refresh tickets public void TrackRefreshState() { InitRefreshState(); int ticket = Convert.ToInt32(Session[RefreshTicketCounter]) 1; Session[RefreshTicketCounter] = ticket; } // ************************************************************** // ************************************************************** // Set the control with the input focus public void SetFocus(string ctlId) { m_focusedControl = ctlId; } // ************************************************************** #region Private Members // ************************************************************** // Create the hidden field to store the current request ticket private void SaveRefreshState() { int ticket = Convert.ToInt32(Session[RefreshTicketCounter]) 1; RegisterHiddenField(RefreshAction.CurrentRefreshTicketEntry, ticket.ToString()); } // ************************************************************** // ************************************************************** // Ensure that the ticket counter is initialized private void InitRefreshState() { if (Session[RefreshTicketCounter] == null) Session[RefreshTicketCounter] = 0; } // ************************************************************** // ************************************************************** // Handle the PreRender event private void RefreshPage_PreRender(object sender, EventArgs e) { SaveRefreshState(); AddSetFocusScript(); } // ************************************************************** // ************************************************************** // Add any script code required for the SetFocus feature private void AddSetFocusScript() { if (m_focusedControl == "") return; // Add the script to declare the function // (Only one form in ASP.NET pages) StringBuilder sb = new StringBuilder(""); sb.Append(""); sb.Append("function "); sb.Append(SetFocusFunctionName); sb.Append("(ctl) {"); sb.Append(" if (document.forms[0][ctl] != null)"); sb.Append(" {document.forms[0][ctl].focus();}"); sb.Append("}"); // Add the script to call the function sb.Append(SetFocusFunctionName); sb.Append("(); sb.Append(m_focusedControl); sb.Append();"); // Register the script (names are CASE-SENSITIVE) if (!IsStartupScriptRegistered(SetFocusScriptName)) RegisterStartupScript(SetFocusScriptName, sb.ToString()); } // ************************************************************** #endregion #region Private Properties // *********************************************************** // Private properties private string m_focusedControl; // *********************************************************** #endregion }}  
    2021-03-16 17:39:21下载
    积分:1
  • MFC连接Mysql数据库,读写关系型数据库
    在vs2013平台上,用MFC实现关系型数据库的连接,读取数据,写入数据,代码简单,适合初学者参考。
    2022-01-23 10:38:45下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载