MCPcopy Create free account
hub / github.com/dabeaz/python-cookbook / close

Method close

src/11/event_driven_io_explained/tcpserver.py:35–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

33 return self.sock.fileno()
34
35 def close(self):
36 self.sock.close()
37 # Remove myself from the event loop's handler list
38 self.handler_list.remove(self)
39
40 def wants_to_send(self):
41 return True if self.outgoing else False

Callers 14

tcpclient.pyFile · 0.45
handle_receiveMethod · 0.45
echo_clientFunction · 0.45
echoclient.pyFile · 0.45
server.pyFile · 0.45
echo_handlerFunction · 0.45
echo_handlerFunction · 0.45
echoclient.pyFile · 0.45
client1.pyFile · 0.45
serverFunction · 0.45
workerFunction · 0.45
serverFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected