> I'm writting a toy copas-based server (POSIX-only, not Windows).

> Server's clients send string and timeout (in seconds). Example:

> BOO!<CRLF>
> 10.52<CRLF>

> When timeout elapses (starting on the time command was received),
> server must print the string to the stdout (not to the network). The
> timing must be as precise as possible.

> The question is: how to write such server in Lua? I'm stuck with the
> timeout thing...

I mean that if I didn't used Copas, I'd tried to use socket select
timeout to sleep until I have to either print something to stdout or
read incoming data from a socket. I'm not sure how to do this with
Copas though...

Alexander.

_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to