Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
from
socket
import
socket, AF_INET, SOCK_STREAM
2
s = socket(AF_INET, SOCK_STREAM)
3
s.connect((
'localhost'
, 20000))
4
Callers
nothing calls this directly
Calls
3
send
Method · 0.45
recv
Method · 0.45
close
Method · 0.45
Tested by
no test coverage detected