The document discusses sockets in Python's socket module. It describes the primary socket functions like socket(), bind(), listen(), accept(), connect(), and send()/recv(). It explains that TCP sockets provide reliable, in-order data transmission using these functions, while UDP is unreliable and unordered. TCP is recommended when reliability is important, while UDP may be preferable for real-time data with less reliability needs.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
50 views7 pages
Socket Python 1
The document discusses sockets in Python's socket module. It describes the primary socket functions like socket(), bind(), listen(), accept(), connect(), and send()/recv(). It explains that TCP sockets provide reliable, in-order data transmission using these functions, while UDP is unreliable and unordered. TCP is recommended when reliability is important, while UDP may be preferable for real-time data with less reliability needs.