English 中文(简体)
我如何能够从任何港口向另一个机器发送收到的数据?
原标题:how I can send a received data from any port to another machine?

I want to implement a program that performs communication between more than 2 computers.

例如,我将拥有一个电脑,向计算机发送查询,该计算机是2222号港口的服务器。 该服务器将始终听取询问。 当盘问时,它将送至另一个机器,该机器是4444号港的服务器。 之后,将在最后一台机器上进行盘问,然后送回。

• 说明:

  1. 提盘——>第一机(2222号港)——+;第二机(4444号港)

  2. 第二台机器人

  3. 第二台机器(4444港口)-------------;第一台机器(2222港口)-----------;查询

Can you please tell me how I can send the received query from first machine to second machine? To be more clear how I can send a received data from any port to another machine?

非常感谢。

最佳回答

在第一台机器上,只听了2222号港口的询问,然后向第2台4444号港口机器(第二台机器在444444号港口收听)开了一张Socket,该机器处理询问。

反向路线恰恰相反。 在发现结果后,可使用一个袖珍仪与第一个机器连接,结果之后,第一个机器将结果寄回其来源。

第一和第二台机器都需要利用服务器(用于新接线)以及使用Socket级发送结果。

正如Suraf Chandran所解释,

问题回答

暂无回答




相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签