I wanted to use owfs in a Ruby project so I decided to port the Python ownet client to Ruby.
While doing the port I found that Connection.read contains the following code: while 1: data = s.recv(24) if len(data) is not 24: raise exShortRead ret, payload_len, data_len = self.unpack(data) if payload_len: data = s.recv(payload_len) rtn = self.toNumber(data[:data_len]) break else: rtn = None break The while loop can only run once since both if branches break out from it. Greetings, Pedro. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers