文件名称:SocketServerAcceptMultipleClient
-
所属分类:
- 标签属性:
- 上传时间:2018-06-06
-
文件大小:48kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
使用Socket实现一个socket服务器与多个socket客户端通信
在分布式调度系统中,如果要实现调度服务器与多台计算节点服务器之间通信,采用socket来实现是一种实现方式,当然我们也可以通过数据存储任务,子节点来完成任务,但是往往使用数据作为任务存储都需要定制开发,要维护数据库中任务记录状态等等。开发的东西还是有点多,而且还不够灵活。因此,我个人是比较偏向于使用socket来实现任务的调度工作。原因:使用socket实现调度比较灵活,而且扩展性都比较好。
实现思路:调度服务器要实现调度工作,它必须与所有计算节点之间建立连接。而且他需要知道每台计算节点的任务状况,因此服务器节点必须存储与所有计算节点的socket连接对象。
在客户端唯一需要知道的就是它归属的调度服务器的通信IP和端口,因此client是发送连接的主动方,由调度服务器监听是否有client请求建立连接,当建立连接成功后,把该连接信息存储到一个结合中以便监控client的存货状态及通信使用。(Using Socket to realize the communication between a socket server and multiple socket clients
In a distributed scheduling system, if we want to realize the communication between a scheduling server and a number of computing node servers, the implementation of socket is an implementation. Of course, we can also accomplish the task by data storage tasks and sub nodes, but the use of data as a task storage needs to be customized and developed. Protect the status of the task record in the database and so on. There are still a lot of things to develop, and not flexible enough. Therefore, I personally prefer to use socket to achieve task scheduling. Reason: using socket to implement scheduling is more flexible and expansibility is better.)
在分布式调度系统中,如果要实现调度服务器与多台计算节点服务器之间通信,采用socket来实现是一种实现方式,当然我们也可以通过数据存储任务,子节点来完成任务,但是往往使用数据作为任务存储都需要定制开发,要维护数据库中任务记录状态等等。开发的东西还是有点多,而且还不够灵活。因此,我个人是比较偏向于使用socket来实现任务的调度工作。原因:使用socket实现调度比较灵活,而且扩展性都比较好。
实现思路:调度服务器要实现调度工作,它必须与所有计算节点之间建立连接。而且他需要知道每台计算节点的任务状况,因此服务器节点必须存储与所有计算节点的socket连接对象。
在客户端唯一需要知道的就是它归属的调度服务器的通信IP和端口,因此client是发送连接的主动方,由调度服务器监听是否有client请求建立连接,当建立连接成功后,把该连接信息存储到一个结合中以便监控client的存货状态及通信使用。(Using Socket to realize the communication between a socket server and multiple socket clients
In a distributed scheduling system, if we want to realize the communication between a scheduling server and a number of computing node servers, the implementation of socket is an implementation. Of course, we can also accomplish the task by data storage tasks and sub nodes, but the use of data as a task storage needs to be customized and developed. Protect the status of the task record in the database and so on. There are still a lot of things to develop, and not flexible enough. Therefore, I personally prefer to use socket to achieve task scheduling. Reason: using socket to implement scheduling is more flexible and expansibility is better.)
相关搜索: socket服务
多个socket客户端通信
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
SocketServerAcceptMultipleClient\App.config | 77 | 2017-09-04 |
SocketServerAcceptMultipleClient\bin\Debug\SocketServerAcceptMultipleClient.exe | 7680 | 2017-09-04 |
SocketServerAcceptMultipleClient\bin\Debug\SocketServerAcceptMultipleClient.exe.config | 77 | 2017-09-04 |
SocketServerAcceptMultipleClient\bin\Debug\SocketServerAcceptMultipleClient.pdb | 13824 | 2017-09-04 |
SocketServerAcceptMultipleClient\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache | 5794 | 2017-09-04 |
SocketServerAcceptMultipleClient\obj\Debug\SocketServerAcceptMultipleClient.csproj.FileListAbsolute.txt | 537 | 2017-09-04 |
SocketServerAcceptMultipleClient\obj\Debug\SocketServerAcceptMultipleClient.exe | 7680 | 2017-09-04 |
SocketServerAcceptMultipleClient\obj\Debug\SocketServerAcceptMultipleClient.pdb | 13824 | 2017-09-04 |
SocketServerAcceptMultipleClient\Properties\AssemblyInfo.cs | 1406 | 2017-09-04 |
SocketServerAcceptMultipleClient\SocketServer.cs | 6234 | 2017-09-04 |
SocketServerAcceptMultipleClient\SocketServerAcceptMultipleClient.csproj | 2482 | 2017-09-04 |
PokerGame.sln | 6030 | 2017-09-04 |
SocketClient\app.config | 144 | 2017-09-04 |
SocketClient\bin\Debug\SocketClient.exe | 9216 | 2017-09-04 |
SocketClient\bin\Debug\SocketClient.exe.config | 144 | 2017-09-04 |
SocketClient\bin\Debug\SocketClient.pdb | 17920 | 2017-09-04 |
SocketClient\bin\Debug\SocketClient.vshost.exe | 11600 | 2017-09-04 |
SocketClient\bin\Debug\SocketClient.vshost.exe.config | 144 | 2017-09-04 |
SocketClient\bin\Debug\SocketClient.vshost.exe.manifest | 490 | 2015-10-22 |
SocketClient\Main.cs | 5003 | 2017-09-04 |
SocketClient\Main.Designer.cs | 3886 | 2017-09-04 |
SocketClient\Main.resx | 5817 | 2017-09-04 |
SocketClient\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache | 5957 | 2017-09-04 |
SocketClient\obj\x86\Debug\SocketClient.csproj.FileListAbsolute.txt | 522 | 2017-09-04 |
SocketClient\obj\x86\Debug\SocketClient.csproj.GenerateResource.Cache | 901 | 2017-09-04 |
SocketClient\obj\x86\Debug\SocketClient.exe | 9216 | 2017-09-04 |
SocketClient\obj\x86\Debug\SocketClient.Main.resources | 180 | 2017-09-04 |
SocketClient\obj\x86\Debug\SocketClient.pdb | 17920 | 2017-09-04 |
SocketClient\Program.cs | 583 | 2017-09-04 |
SocketClient\Properties\AssemblyInfo.cs | 1366 | 2017-09-04 |
SocketClient\SocketClient.csproj | 3000 | 2017-09-04 |
SocketClient\obj\x86\Debug\TempPE | 0 | 2017-09-04 |
SocketServerAcceptMultipleClient\obj\Debug\TempPE | 0 | 2017-09-04 |
SocketClient\obj\x86\Debug | 0 | 2017-09-04 |
SocketServerAcceptMultipleClient\bin\Debug | 0 | 2017-09-04 |
SocketServerAcceptMultipleClient\bin\Release | 0 | 2017-09-04 |
SocketServerAcceptMultipleClient\obj\Debug | 0 | 2017-09-04 |
SocketClient\bin\Debug | 0 | 2017-09-04 |
SocketClient\obj\x86 | 0 | 2017-09-04 |
SocketServerAcceptMultipleClient\bin | 0 | 2017-09-04 |
SocketServerAcceptMultipleClient\obj | 0 | 2017-09-04 |
SocketServerAcceptMultipleClient\Properties | 0 | 2017-09-04 |
SocketClient\bin | 0 | 2017-09-04 |
SocketClient\obj | 0 | 2017-09-04 |
SocketClient\Properties | 0 | 2017-09-04 |
SocketServerAcceptMultipleClient | 0 | 2017-09-04 |
SocketClient | 0 | 2017-09-04 |
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.