Please no links, well if they are good then sure...

Can anyone supply examples of using sockets? Or just the basic layout of a class that uses sockets? and how to make a small chat program? How i would set-up the server/client programs etc...