Output command to socket without buffering using Mojo::IOLoop

戏子无情 提交于 2019-12-12 21:03:08

问题


How to do continiously output of command (for me it's long ping) in real-time mode on Mojo server? I'm looking for some example on Mojo::IOLoop. For example, client connects to server and requests for ping X.X.X.X, server returns an non-buffered output (while ping on server return each line to output, client receive this line from socket), after that — server must drop the connection.

来源:https://stackoverflow.com/questions/3171833/output-command-to-socket-without-buffering-using-mojoioloop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!