[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Asynchronous File Input with Copas
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 11 Mar 2009 16:05:33 +0200
Copas is a wonderful way to make little servers. But now I want to
add a CLI interface, and the only way I can think of is writing an
extension which connects to a Copas server and reads stdin (or any
file handle, e.g a pipe) in a separate thread, writing any text read
to the server.
This is awkward, and I was wondering if there isn't some socket
science exposed by LuaSocket which can help here.