Output command to socket without buffering using Mojo::IOLoop
Asked Answered
T

0

2

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.

Tailband answered 3/7, 2010 at 14:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.