I'm using telnet lib to read from an Telnet server.
my code looks like this:
s = telnetlib.Telnet(self.host, self.port) while 1: line = s.read_until("\n") print(line)
this is working fine so far, but as i have a look on the network traffic i can see tons of packets between client and server. If i use raw socket, this is not happening.
packets on the network are nearly empty. I Guess this is a pull for next charakter
Has anybody an explanation for this? I don't whant to spam my telnet server but i like the idea of the read_until mechanism since i can get line by line.
thanks!