Copyright © 2001 Qusay H. Mahmoud
32
What are sockets
lA socket is an end point of a connection
lOr: the interface between user and network
lTwo sockets must be connected before they can be used to transfer data (case of TCP)
lA number of connections to choose from:
–TCP, UDP, Multicast
lTypes of Sockets
–SOCK_STREAM, SOCK_DGRAM, SOCK_RAW
l