• Welcome to Theos PowerBasic Museum 2017.

Winsock APIs vs TCP OPEN

Started by Christian McDonald, July 13, 2009, 05:11:38 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Christian McDonald

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.

José Roca

 
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.