If you're doing fairly straightforward stuff, just read the VB Help file under the topics "Using the Winsock Control" and also "Winsock Control" (which documetns the properties, methods, events, etc.)
The control encapsulates normal TCP and UDP communication functions and it's dead easy to use.