__recvall(count) -> data Receive EXACTLY the number of bytes requested from the socket. Blocks until the required number of bytes have been received.
(self, count)
| 138 | self.__proxypeername = None |
| 139 | |
| 140 | def __recvall(self, count): |
| 141 | """__recvall(count) -> data |
| 142 | Receive EXACTLY the number of bytes requested from the socket. |
| 143 | Blocks until the required number of bytes have been received. |
| 144 | """ |
| 145 | data = self.recv(count) |
| 146 | while len(data) < count: |
| 147 | d = self.recv(count-len(data)) |
| 148 | if not d: raise GeneralProxyError((0, "connection closed unexpectedly")) |
| 149 | data = data + d |
| 150 | return data |
| 151 | |
| 152 | def setproxy(self, proxytype=None, addr=None, port=None, rdns=True, username=None, password=None): |
| 153 | """setproxy(proxytype, addr[, port[, rdns[, username[, password]]]]) |
no test coverage detected