|
While using a socket, how can I recieve all the output generated by a host Im communicating with without having to specify the amount af bytes to read? (like socket.recieve(1024)) python has a good telnet module that has a function called "read_until()" which reads the output until a specified character is read and stops. This isn't too reliable because the character might not be there in the event something unexpected happens. Anyone know how I can just read all of the output?
(oh i also tried a "while buffer >= 1" loop but it just hung )
|