MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / sendall

Method sendall

tools/python-3.11.9-amd64/Lib/ssl.py:1262–1276  ·  view source on GitHub ↗
(self, data, flags=0)

Source from the content-addressed store, hash-verified

1260 self.__class__)
1261
1262 def sendall(self, data, flags=0):
1263 self._checkClosed()
1264 if self._sslobj is not None:
1265 if flags != 0:
1266 raise ValueError(
1267 "non-zero flags not allowed in calls to sendall() on %s" %
1268 self.__class__)
1269 count = 0
1270 with memoryview(data) as view, view.cast("B") as byte_view:
1271 amount = len(byte_view)
1272 while count < amount:
1273 v = self.send(byte_view[count:])
1274 count += v
1275 else:
1276 return super().sendall(data, flags)
1277
1278 def sendfile(self, file, offset=0, count=None):
1279 """Send a file, possibly by using os.sendfile() if this is a

Callers 13

handleMethod · 0.45
demoserver.pyFile · 0.45
sendMethod · 0.45
_putlineMethod · 0.45
writeMethod · 0.45
process_rawqMethod · 0.45
putlineMethod · 0.45
abortMethod · 0.45
storbinaryMethod · 0.45
storlinesMethod · 0.45
abortMethod · 0.45
sendMethod · 0.45

Calls 2

_checkClosedMethod · 0.95
sendMethod · 0.95

Tested by

no test coverage detected