socketpair

what is the difference to use socketpair and socket while socket programming

other than socket create a single socket,socketpair creates a pair of sockets