All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
用PHP程序实现删除目录的三种方法实例_[PHP教程]
PHP实现同步远程Mysql_[PHP教程]
如何实现asp.net,2.0的SqlCacheDependency_[Asp.Net教程]
动态网页实用技巧:php中文乱码问题_php资料_编程技术
PHP检查表单提交是否来自于本站_[PHP教程]
SQL server存储过程初探_[SQL Server教程]
PHP中的正则表达式_[PHP教程]
C#学习,无废话C#设计模式之一:开篇_.net资料_编程技术
visual c++中类的多态性与虚函数
PHP汉字区位码相互转换源代码_[PHP教程]
Reading number is top 10 pictures
八个盛产美女的国家2
Photographed the passion of the clients and prostitutes in the sex trade picture1
The other a successor of sora aoi
Group of female porn in 《westwards》, uninhibited woman threatened to not the bottom line1
The little girl with long hair2
Startling Russian girl blind date scene2
我国房地产真相
5 meters long centenarians python and melee was successfully capture king snake (figure)
农夫山泉变身记
NeedWallpaper7
Download software ranking
Tram sex maniac 2 (H) rar bag18
Boxer's Top ten classic battle10
I'm come from Beijing1
Ashlynn Video5
Sora aoi, the maid, students' uniforms
Unix video tutorial15
Tram sex maniac 2 (H) rar bag1
Adobe Flash Player(IE) 10.0.32.18 浏览器专用的FLASH插件
仙剑奇侠传98硬盘WINXP版
网络管理员第三版
qq published in(发表于) 2014/7/11 9:22:59 Edit(编辑)
C#教程:System.Net.Sockets命名空间使用实例

C#教程:System.Net.Sockets命名空间使用实例

C#教程:System.Net.Sockets命名空间使用实例|方法

System.Net.Sockets命名空间

System.Net.Sockets命名空间主要提供制作Sockets网络应用程序的相关类,其中Socket类、TcpClient类、TcpListener类、UdpClinet类和NetWorkStream类较为常用,下面对它们进行简单介绍。

Socket类:用于管理连接,实现Berkeley通信端接口,定义绑定、连接网络端点以及传输数据所需的方法,提供处理端点连接传输等细节所需要的功能。WebRequest、TcpClient和UdpClinet等类在内部使用这个类。

TcpClient类:允许创建和使用TCP连接,该类创建于Socket类的基础上,并且封装了许多更高级的功能,避免开发人员处理连接操作的相关细节。

TcpListener类:允许监听传入的TCP连接请求,倾听来自TCP客户端应用程序的连接要求,封装更高级的功能,使用这个类可以让用户避免处理一些连接服务的细节,以一种比较有效的方式,接收倾听的连接需求。

UdpClinet类:用于为UDP客户创建连接(UDP是一种TCP协议,但没有得到广泛的使用,主要用于本地网络)。

NetWorkStream类:这个类是从Stream派生出来的,专门用以处理网络形式的数据流,与其他文件数据流的显著区别在于,这个类接收Socket类对象参数,对网络数据进行存取操作。




添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.