一个客户端通过TCP / I或套接字连接到多个服务器 [英] One client connected to multiple servers through TCP/I or sockets

查看:598
本文介绍了一个客户端通过TCP / I或套接字连接到多个服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将Tcp客户端应用程序连接到多个套接字侦听器。

是否可以进行此类连接,请解释如何执行此操作。

我的方案是:

我有多个Socket监听器和一个TCP客户端,我希望Tcp客户端连接到所有服务器并在它们之间创建一个桥接器。这样我就可以随时在Tcp Client的任何套接字监听器之间进行数据传输。

I want to connect the Tcp client application to multiple socket listener.
Is it is possible to make this type of connection if yes, please explain what can do to perform this.
My scenario is:
I have number of Socket listener and one TCP client, I want Tcp client make connection to all the server and create a bridge between them. so that i will perform data transfer between any socket listener with Tcp Client at any time.

推荐答案

是的,可能。



性能取决于很多因素,如果你对下面给出的点更具体一点我可以帮你解决。



1.什么机器您的运行以及您用于开发应用程序的技术。

2.您希望在任何给定时间点连接多少台服务器。

3.您要交换的数据大小。
Yes, Its possible.

Performance depends on many factors, if you can be a little more specific on points given below I can help you out.

1. What machine your running and what technology your using to develop the application.
2. How many servers you want to connect in any given point of time.
3. What size of data you will be exchanging.


这篇关于一个客户端通过TCP / I或套接字连接到多个服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆