MCPcopy
hub / github.com/tornadoweb/tornado / add_socket

Method add_socket

tornado/tcpserver.py:208–210  ·  view source on GitHub ↗

Singular version of `add_sockets`. Takes a single socket object.

(self, socket: socket.socket)

Source from the content-addressed store, hash-verified

206 )
207
208 def add_socket(self, socket: socket.socket) -> None:
209 """Singular version of `add_sockets`. Takes a single socket object."""
210 self.add_sockets([socket])
211
212 def bind(
213 self,

Callers 11

test_stop_twiceMethod · 0.95
setUpMethod · 0.80
setUpMethod · 0.80
init_serverMethod · 0.80
connect_to_serverMethod · 0.80
run_handlerMethod · 0.80
setUpMethod · 0.80
test_ipv6Method · 0.80
test_stop_in_callbackMethod · 0.80

Calls 1

add_socketsMethod · 0.95

Tested by 11

test_stop_twiceMethod · 0.76
setUpMethod · 0.64
setUpMethod · 0.64
init_serverMethod · 0.64
connect_to_serverMethod · 0.64
run_handlerMethod · 0.64
setUpMethod · 0.64
test_ipv6Method · 0.64
test_stop_in_callbackMethod · 0.64