同一台服务器运行2个gatewayWroker 能否互相通讯吗?

weilewantieba

比如服务器中运行了2个gateWayWorker
127.0.0.1:40001 ->运行了AgateWayWorker
127.0.0.1:40002 ->运行了BgateWayWorker
客户端连接到AgateWayWorker的时候进行数据交互。需要通知BgateWayWorker。
请大神请教一下。

1665 1 0
1个回答

six

用aysncTcpConnection模拟个客户端连BgateWayWorker,send数据通知它

  • weilewantieba 2020-04-29

    我试过了。连接是链接上了。但是链接上马上就被close.send接收不到数据

  • six 2020-04-29

    aysncTcpConnection 里用的协议不对吧

年代过于久远,无法发表回答
🔝