Final_Network_Programming_Guide
Final_Network_Programming_Guide
3. **How does the TCP three-way handshake work? Explain each step.**
- SYN: Client sends connection request.
- SYN-ACK: Server acknowledges and responds.
- ACK: Client confirms, and connection is established.
4. **What are sockets and how are they used in network programming?**
- Sockets provide endpoints for sending/receiving data in network applications.
10. **What are zombie processes and how do you prevent them?**
- Zombie processes occur when a child process exits but its parent does not read its exit status.
- Solution: Use `waitpid()` or handle `SIGCHLD`.
23. **How do you monitor active TCP connections using Linux commands?**
- Use `netstat -an | grep ESTABLISHED`.