基于tcp协议,客户机连接到gatewayworker,用于隐藏真实服务器的IP,是否可行
可以用workerman做反向代理,利用AsyncTcpConnection。GatewayWorker不太适合做反向代理,gateway到businessWorker多了一层开销,编码也麻烦些。
相关链接 http://doc3.workerman.net/worker-development/pipe.html http://doc3.workerman.net/worker-development/__construct.html http://doc3.workerman.net/worker-development/connect.html
可以用workerman做反向代理,利用AsyncTcpConnection。GatewayWorker不太适合做反向代理,gateway到businessWorker多了一层开销,编码也麻烦些。
相关链接
http://doc3.workerman.net/worker-development/pipe.html
http://doc3.workerman.net/worker-development/__construct.html
http://doc3.workerman.net/worker-development/connect.html