Introduction To Socket Programming: Sandip Chakraborty
Introduction To Socket Programming: Sandip Chakraborty
Sandip Chakraborty
August 8, 2018
A set of system calls to get the service from TCP/IP protocol stack (net
module in the OS kernel).
sin addr.s addr: Source address, INADDR ANY to choose the local
address
The client only opens a connection when there is a need for data
transfer - Active Open
http://cs.baylor.edu/~donahoo/practical/CSockets/
textcode.html
http:
//www.cs.rpi.edu/~moorthy/Courses/os98/Pgms/socket.html