The string resp[4] is being passed as the bytes argument to __recvall. Should be ord(resp[4]) i.e.
boundaddr = self.__recvall(ord(resp[4]))
Log in to post a comment.