Pro lesson · Preview
Sockets
The programming interface to TCP/UDP: the BSD socket calls (socket/connect/send/recv, bind/listen/accept), client and server flows, byte order, and the partial-I/O and blocking traps on an MCU.
24 min read
This lesson is part of Pro
Upgrade to unlock the full lesson and the complete interview Q&A.
Unlock with Pro5 interview questions on this topic
Each one opens a full worked answer.
Walk through the socket calls for a TCP client and a TCP server.What is network byte order and why does it matter?Why must you loop on send() and recv() with TCP?Why are blocking socket calls a problem on an MCU, and what are the alternatives?What's different about using sockets on a constrained embedded device versus a PC?
This is just the start
Sign up free to track your progress through this course, mark lessons complete, and work through the full interview Q&A.