telnetlib.Telnet.write

Telnet.write(buffer)[source]

Write a string to the socket, doubling any IAC characters.

Can block if the connection is blocked. May raise socket.error if the connection is closed.