> 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
_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to