Jul 27 2014 12:16 PM
Pipes are used to pass the output of one command as an input to another. In *nix systems pipes can be used to chain multiple commands together.
Sockets are ports where applications listen. Few examples are the chat programs and master-slave programs which communicate through sockets.
A better explanation can be found here