Programming on the internet!

Does anyone know how to write winsock apps? Does anyone have any good
pointers to places where I can learn how to write winsocks apps. I'm
mainly interested in FTP, IRC and FINGERing utils. Any help would
really be appreciated!

Thanks in advance, Andre