文件名称:cSharp-socket-mutiport-programming(1)
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:16.01kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
本文讲下C#使用socket实现多端口通信,挺不错哦,一起看下吧。
基本思路是:
1》服务端监听(用一个公用的端口接收连接的请求如:6666)。
2》客户机请求连接端口为6666
3》服务器接受请求然后再监听一个新的端口,再把这个端口发送给客户机。
4》客户机接到发来的端口,再重新连接服务器此端口。
5》服务器保存每一个连接的客户机。
-This article about C# using the socket under the multi-port communication, pretty good, oh, with a look it. The basic idea is: a " listen server (using a common port to receive connection requests, such as: 6666). 2 " for the client request port 66663" server accepted the request and then listen to a new port, then this port to send to the client. 4 " sent by the client received the port, and then reconnect to the server to this port. 5 " server keeps a connection for each client.
基本思路是:
1》服务端监听(用一个公用的端口接收连接的请求如:6666)。
2》客户机请求连接端口为6666
3》服务器接受请求然后再监听一个新的端口,再把这个端口发送给客户机。
4》客户机接到发来的端口,再重新连接服务器此端口。
5》服务器保存每一个连接的客户机。
-This article about C# using the socket under the multi-port communication, pretty good, oh, with a look it. The basic idea is: a " listen server (using a common port to receive connection requests, such as: 6666). 2 " for the client request port 66663" server accepted the request and then listen to a new port, then this port to send to the client. 4 " sent by the client received the port, and then reconnect to the server to this port. 5 " server keeps a connection for each client.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
c#网络编程技巧之使用socket实现多端口通信的源码 - 学IT网 xueit_com.htm
c#网络编程技巧之使用socket实现多端口通信的源码(2) - 学IT网 xueit_com2.htm
c#网络编程技巧之使用socket实现多端口通信的源码(2) - 学IT网 xueit_com2.htm
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.