An internet socket is, as simply as I can put it, is a point through which a program can communicate with the internet. There are several specifications and/or libraries that offer you tools to program with these, including winsock.
That code that ultifinitus posted a link to should work on Windows, yes. If it doesn't, then something's really screwy.