View Single Post
Old Aug 25th, 2006, 2:29 PM   #7
GoldenArms
Newbie
 
Join Date: Jul 2006
Posts: 8
Rep Power: 0 GoldenArms is on a distinguished road
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 )
GoldenArms is offline   Reply With Quote