[Mono-list] telnet connection

Yves Glodt y.glodt at sitasoftware.lu
Tue Dec 13 07:19:44 EST 2005


Hi,

I am porting an application from python to c#.
Is there a possibility to make a telnet connection via using native mono 
functions...?
Here is what I do in python:


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")


How could I translate that to c#?

regards,
Yves


More information about the Mono-list mailing list