Theos PowerBasic Museum 2017

Archive => Discussion - Legacy Software (PBWIN 9.0+/PBCC 5.0+) => Topic started by: Christian McDonald on July 13, 2009, 05:11:38 AM

Title: Winsock APIs vs TCP OPEN
Post by: Christian McDonald on July 13, 2009, 05:11:38 AM
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.
Title: Re: Winsock APIs vs TCP OPEN
Post by: José Roca on July 13, 2009, 06:21:58 AM
 
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.