基于tcp協(xié)議,客戶機(jī)連接到gatewayworker,用于隱藏真實(shí)服務(wù)器的IP,是否可行
可以用workerman做反向代理,利用AsyncTcpConnection。GatewayWorker不太適合做反向代理,gateway到businessWorker多了一層開銷,編碼也麻煩些。
相關(guān)鏈接
http://doc3.workerman.net/worker-development/pipe.html
http://doc3.workerman.net/worker-development/__construct.html
http://doc3.workerman.net/worker-development/connect.html