登录
首页 » C# » 基于异步通信的TCP开发的聊天程序,源代码包含客户端程序和服务器端程序。...

基于异步通信的TCP开发的聊天程序,源代码包含客户端程序和服务器端程序。...

于 2022-05-21 发布 文件大小:107.98 kB
0 168
下载积分: 2 下载次数: 1

代码说明:

基于异步通信的TCP开发的聊天程序,源代码包含客户端程序和服务器端程序。-Based on the development of asynchronous communication TCP chat program, the source code contains client programs and server-side programs.

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

发表评论

0 个回复

  • IriSkin2
    说明:  换皮肤的控件,可以用工具箱添加使用。VS可以用(Skin-changing controls can be added and used with toolboxes. VS can be used.)
    2019-05-30 10:36:21下载
    积分:1
  • 足球机器人控制代码
    本代码主要介绍了在上位机上如何控制足球机器人运动,其中包含视觉检测足球,红外检测足球距离,超声波壁障,多机器人组网无线通信等模块。
    2022-03-20 07:12:40下载
    积分: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
  • 用种子填充画的苹果
    使用opengl  ,c语言,主要使用种子填充,使苹果被咬了一口,呈现出苹果图标的图像。 苹果的形状使用两个椭圆拼成,因为opengl没有现成的苹果图像,假如追求更好地效果可以变成三维的,加上光照还有环境光,漫反射,效果应该会更好,不过我写的这个是二维的。
    2022-01-31 09:30:12下载
    积分:1
  • Source_image_processing_edge_detection
    图像处理技术边缘检测源码Source image processing edge detection(Image processing edge detection source Source image processing edge detection)
    2010-08-04 17:47:52下载
    积分:1
  • backgroud(12.22)
    本人开发的火焰识别程序,包括otsu自适应阈值,canny边缘检测,形态学膨胀、腐蚀操作,尖角判别,圆形度计算。在vc下编译通过。(development of the flame identification procedures, including otsu adaptive threshold, canny edge detection, Morphological expansion, corrosion operation, pointed discriminant, circular calculation. Under the vc compile.)
    2006-12-22 19:07:30下载
    积分:1
  • breadthsearch
    a source code that impliment bradth first search
    2009-12-13 01:10:35下载
    积分:1
  • vcpicph
    VC++图像平滑处理+程序源码,实现图象的平滑(去噪声),锐化功能,测试时请在C盘下放一个测试用的Bmp图片,路径:C: est.bmp,没有的话没法测试。如上图所示是水平平滑处理,可以对比下,不过感觉颜色失真了,有兴趣的看一下。命令行编译过程如下:   vcvars32   rc bmp.rc   cl smooth.c bmp.res user32.lib gdi32.lib(VC++ image smoothing+ program source code, to achieve a smooth image (to noise), sharpening function in the C drive when testing a test of decentralization Bmp picture, path: C: test.bmp, no words can not test . Is shown above the level of smoothing, you can compare the next, but the feeling of color distortion, interested look. Command-line compiler as follows: vcvars32 rc bmp.rc cl smooth.c bmp.res user32.lib gdi32.lib)
    2014-02-18 15:30:52下载
    积分:1
  • J939介绍
    说明:  从网上找的SAE J1939 介绍的总结,主要是应用层介绍,包括PGN和SPN的计算及介绍。(Summary and Introduction of J1939.)
    2020-05-11 17:25:58下载
    积分:1
  • SuperCopy
    VC++,利用线程技术开发的文件复制工具,对于复制难读的VCD光盘中的硬盘特别有效(也是为此目的而开发,因为在盘片有错误时,WINDOWS会无法复制,这种错误往往会出现在文件的末段).(VC, the use of threaded technology development tools for the reproduction of documents. For hard copy of the VCD reading the hard disk particularly effective (for this purpose as well as development, because of an error in the disk, Windows will be impossible to reproduce, such mistakes will always be in the last paragraph of the document).)
    2006-09-27 10:46:47下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载