[Mono-list] telnet connection
Miguel de Icaza
miguel at ximian.com
Tue Dec 13 11:06:37 EST 2005
> I am porting an application from python to c#.
> Is there a possibility to make a telnet connection via using native mono
> functions...?
You can use dotnettelnet:
http://dotnettelnet.sourceforge.net/
> telnet = telnetlib.Telnet()
> telnet.open(zyxel_internal_ip)
> telnet.read_until("Password:")
> telnet.write(zyxel_pw + "NetMan\r\n")
> telnet.read_until(">", 10)
> telnet.write("ip ifconfig wanif0\r\n")
> ipdata = telnet.read_until("netmask", 10)
> telnet.write("exit\r\n")
A sample is here:
http://cvs.sourceforge.net/viewcvs.py/dotnettelnet/dotnettelnet/TestClient/TestClient.cs?rev=1.3&view=auto
More information about the Mono-list
mailing list