MCPcopy Index your code
hub / github.com/python/cpython / send

Method send

Lib/test/support/asyncore.py:362–373  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

360 return conn, addr
361
362 def send(self, data):
363 try:
364 result = self.socket.send(data)
365 return result
366 except OSError as why:
367 if why.errno == EWOULDBLOCK:
368 return 0
369 elif why.errno in _DISCONNECTED:
370 self.handle_close()
371 return 0
372 else:
373 raise
374
375 def recv(self, buffer_size):
376 try:

Callers 4

initiate_sendMethod · 0.45
run_no_yield_async_fnFunction · 0.45
run_yielding_async_fnFunction · 0.45
initiate_sendMethod · 0.45

Calls 1

handle_closeMethod · 0.95

Tested by

no test coverage detected