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

Method write

tools/python-3.11.9-amd64/Lib/ssl.py:1178–1185  ·  view source on GitHub ↗

Write DATA to the underlying SSL channel. Returns number of bytes of DATA actually transmitted.

(self, data)

Source from the content-addressed store, hash-verified

1176 raise
1177
1178 def write(self, data):
1179 """Write DATA to the underlying SSL channel. Returns
1180 number of bytes of DATA actually transmitted."""
1181
1182 self._checkClosed()
1183 if self._sslobj is None:
1184 raise ValueError("Write on closed or unwrapped SSL socket.")
1185 return self._sslobj.write(data)
1186
1187 @_sslcopydoc
1188 def getpeercert(self, binary_form=False):

Callers

nothing calls this directly

Calls 2

_checkClosedMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected