MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / __recvall

Method __recvall

thirdparty/socks/socks.py:140–150  ·  view source on GitHub ↗

__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)

Source from the content-addressed store, hash-verified

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]]]])

Callers 2

__negotiatesocks5Method · 0.95
__negotiatesocks4Method · 0.95

Calls 2

GeneralProxyErrorClass · 0.85
recvMethod · 0.80

Tested by

no test coverage detected