I am trying to figure out the best way of handling sockets. From what I can see, there are a few ways of doing this. Which is the best?
Using something like this:
#INCLUDE "WinSock2.inc"
#INCLUDE "WS2tcpip.inc"
And initiating the Winsock dlls directly or by using the built in TCP OPEN, etc. routines.
PowerBASIC TCP and UDP statements are an easier to use encapsulation of Winsock. In general, PBer's use them unless they need some functionality available only using the API.