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

File tcpclient.py

src/11/event_driven_io_explained/tcpclient.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1from socket import socket, AF_INET, SOCK_STREAM
2
3s = socket(AF_INET, SOCK_STREAM)
4s.connect(('localhost', 16000))

Callers

nothing calls this directly

Calls 3

sendMethod · 0.45
recvMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected