VTU Network Programming Content
VTU Network Programming Content
🔹 2. Socket Types
There are three primary types of sockets:
https://chatgpt.com/c/68351653-3f10-8010-a055-130ce32b3968 1/3
5/27/25, 7:11 AM VTU Network Programming Questions
UDP is connectionless:
No connect() , accept() , or listen()
Use sendto() and recvfrom()
c Copy Edit
🔹 8. Error Handling
Most socket functions return -1 on error and set errno .
Use perror() or strerror(errno) for descriptive messages.
c Copy Edit
Client (TCP)
c Copy Edit
https://chatgpt.com/c/68351653-3f10-8010-a055-130ce32b3968 3/3