我认为向其他设备发送数据包的工作方式如下所示。
1.服务器设备使用端口.for example 80监听。
2.客户端连接到服务器设备。
for example, the port of client that connects to server is 64000.
如果建立了连接,这两个设备可以发送tcp数据包。
然后第三个设备可以将tcp数据包发送给客户端吗?
我已经用chess.js和java国际象棋库构建了一个网站,通过c++与python通过gRPC与定制的c++国际象棋引擎进行通信。我对web,特别是gRPC还很陌生,所以我不确定我应该采用什么样的架构来进行托管。
我的问题如下:
网站和gRPC服务是否需要托管在单独的服务器实例上并通过API?连接?
- Everything right now is hosted locally and I use two ports as it is right now (5000 for the website and 8080 for the server). If the site and serv