Wikipedia offers an excellent overview of the history and design of Berkeley sockets.

For reference information about Berkeley sockets, locate a Linux system with manual pages installed, and type man socket. You should be able to find both socket(2) and socket(7) reference pages.