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

File echoclient.py

src/11/creating_a_tcp_server/echoclient.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

sendMethod · 0.45
recvMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected