On 2012-11-26 23:58, maarten van damme wrote:
I was wondering if there ever was a telnet library written for D? I've
been unable to find anything. I also tried using curl but the timeout
options seem to fail here. I've tried writing a minimalistic client
myself but the library will be used to connect to some routers and
either something is wrong in my option negotiation or that router
doesn't support the full telnet protocol.

I can't use socketstreams because it strangely counts "255" as a
newline and I'm afraid it'll mess things up when I try to send
different data and socketstream is going to be deprecated...


Don't know how useful it is but Tango contains an Telnet (tango.net.ftp.Telnet) module as a part of its FTP module. It used to contain more code, you can look back at the changeset history.

https://github.com/SiegeLord/Tango-D2
http://www.dsource.org/projects/tango/docs/current/

--
/Jacob Carlborg

Reply via email to