CS 4504 Lecture Notes - Lecture 8: Network Socket, Connectionless Communication, Computer Network Programming
Document Summary
The socket api is an interprocessing communication (ipc) programming interface originally provided as part of the berkeley unix operating system. This method was implemented in all modern operating systems, including sun solaris and windows systems. A socket api provides a programing construct termed a socket. A process wishing to communicate with another process must create an instance or instantiate such a construct. Then the two processes issue operations provided by the api to send and receive data. A socket programming construct can make use of either the udp or tcp protocols. Sockets that use udp for transport are known as datagram sockets while sockets that use tcp are named stream sockets. Udp allows a packet to be transported using connectionless communication. Tcp is connection-oriented and transports a stream of data over a logical connection established between the sender and the receiver.