开发者

Output command to socket without buffering using Mojo::IOLoop

How to do continiously output of command (for me it's long ping) in real-time mode on Mojo server? I'm l开发者_如何学编程ooking 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜