![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
通信编程
文章平均质量分 85
林深见鹿dw
罗曼·罗兰曾说,“世界上只有一种真正的英雄主义,就是认清了生活的真相后还依然热爱它。”
展开
-
winform下TCP通信的简单应用
先看效果图: TCP比较繁琐的就是三次握手定理,每次再发送数据前都要先建立连接确认。 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using Syst原创 2012-05-11 13:38:02 · 6344 阅读 · 0 评论 -
我对Remoting的一点点理解,附简单示例入门篇
今天闲来无事,就把remoting研究了下,之前也接触过,对remoting也有一点点的了解,只是没怎么去深究过,今天我通过我对remoting的一点点理解,给刚接触remoting的学友们介绍下remoting到底是什么,怎么去用,在什么场合去用。 remoting的工作原理:就是服务端向客户端发送一个进程编号,一个程序域编号,以确定对象的位置。一般用在2个或2个以上的进程中,也就是所谓的跨程原创 2012-05-12 18:57:00 · 778 阅读 · 0 评论 -
winform下UPD通信的简单应用
先看效果图: 使用UDP的好处就是不需要三次握手,但是缺点就是存在安全隐患。 QQ就是利用UDP来传输数据的。 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Lin原创 2012-05-11 13:30:45 · 1431 阅读 · 0 评论 -
TCP方式下用NetWorkStream来进行文件的传输
先看图: 代码: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.For原创 2012-05-15 13:26:02 · 2716 阅读 · 1 评论 -
C# Http以文件的形式上传文件
Http以文件的方式上传,不是流的方式。原创 2013-09-06 15:03:35 · 2585 阅读 · 4 评论 -
winform下Socket通信的简单应用
今天给大家来讲解下socket通信的原理,通常socket通信分为TCP,UDP两种不同的用法,我把两种方法都写出来了。 先看效果图: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; us原创 2012-05-11 13:22:11 · 10431 阅读 · 11 评论 -
Winform线程队列的使用,模拟下载等待功能
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading; using System.Threadi原创 2016-01-07 15:14:07 · 1141 阅读 · 0 评论 -
C#用异步BackgroundWorker执行一个文本读取的操作
C#用异步BackgroundWorker执行一个文本读取的操作原创 2012-12-12 15:35:58 · 791 阅读 · 0 评论