[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: [5.1.4] Recommended way to work with Telnet server?
- From: Tymur Gubayev <tymur.gubayev@...>
- Date: Wed, 23 Feb 2011 11:41:00 +0100
Basically, if You don't want/need to implement client with full
telnet support, what is rather complicated, You just need to ignore
any telnet requests from server; these requests always has the form
`IAC cmd` or `IAC WILL/WONT/DO/DONT opt`. (There's another thing of
the form `IAC SB opt data IAC SE`, but this can appear only if client
tells the server to enable some option).
The only more thing You need to know about the server is now does it
mark "I'm waiting for user input now" (IIRC it's the `IAC GA` command)
So it's pretty simple to implement such client with LuaSocket.
Wbr,
Tymur
On 22 February 2011 12:37, Gilles Ganault <gilles.ganault@free.fr> wrote:
> Hello
>
> I need to write a script to interact with a Telnet-based server:
>
> http://ofps.oreilly.com/titles/9780596517342/ch20.html
>
> Alternatively, the server can also be reached through URLs, but the
> client must support cookies.
>
> I'd like to know if LuaSocket is the best solution for this, or if I
> should look at another add-on.
>
> Thank you.
>
>
>