MCPcopy Index your code
hub / github.com/RustPython/RustPython / send

Method send

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

Source from the content-addressed store, hash-verified

370 return conn, addr
371
372 def send(self, data):
373 try:
374 result = self.socket.send(data)
375 return result
376 except OSError as why:
377 if why.errno == EWOULDBLOCK:
378 return 0
379 elif why.errno in _DISCONNECTED:
380 self.handle_close()
381 return 0
382 else:
383 raise
384
385 def recv(self, buffer_size):
386 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