Skip to content

Course

Python Networking & Sockets

Build real network services in Python — TCP and UDP sockets, framing, TLS, asyncio, protocol design, backpressure, and packet-level debugging.

9 lessons

Course Q&A

Reviews

Enrolled members can rate this course.

No reviews yet.

Wire Fundamentals

Sockets, byte streams, datagrams, and framing — what actually crosses the network.

  1. 01TCP Sockets: The Byte-Stream Mental ModelTCP is an ordered byte pipe, not a message bus — learn what connect, send, recv, and close really mean before building anything on top.22mOpen
  2. 02UDP Datagrams: Small, Fast, and Honestly LossyUDP preserves datagram boundaries but not delivery, order, or duplication — use it when latency and independence beat reliability.20mOpen
  3. 03Framing and Wire Formats: Turning Streams into MessagesProtocols need explicit message boundaries — length prefixes, delimiters, serialization choices, and the parser state machine that avoids partial-read chaos.24mOpen

Service Engineering

Concurrency, TLS, and protocol design for services that survive production.

  1. 01Concurrent TCP Servers: Threads, Processes, and Event LoopsChoose a concurrency model based on blocking behavior and shared state — and learn why accept loops, timeouts, and worker lifecycles matter more than framework hype.23mOpen
  2. 02TLS in Python: Certificates, Contexts, and VerificationTLS is authentication plus encryption, not just an https prefix — configure SSLContext deliberately and understand the failures operators actually see.25mOpen
  3. 03Designing Protocols That Can EvolveA protocol is a compatibility contract — versioning, errors, idempotency, and capability negotiation decide whether clients survive change.24mOpen

Async and Debugging

asyncio transports, flow control, failure handling, and packet capture driven troubleshooting.

  1. 01asyncio Transports and Streams Without MysticismUnderstand the event loop, protocols, transports, and stream helpers — then write async network code that does not block the entire service.26mOpen
  2. 02Backpressure, Timeouts, and RetriesNetwork systems fail by accumulation — control queue growth, bound every operation, and retry only when the protocol makes it safe.23mOpen
  3. 03Debugging with Real Captures: tcpdump and WiresharkStop guessing — capture packets safely, read TCP handshake and retransmission evidence, follow streams, and connect network truth to application logs.27mOpen