* Winsock API for PB released *

Developed or developing a new product in PureBasic? Tell the world about it.
AngelSoul
User
User
Posts: 55
Joined: Tue Jul 29, 2003 9:16 am
Location: Canada

* Winsock API for PB released *

Post by AngelSoul »

Hi everyone,

Here's my 2nd project, full TCP and UDP support using API. This was done to break the limitations that PB currently has. Examples are provided on how to use it.

The package contains the full source for all functions, examples demonstrate how easy it is to use with any existing applications.

Get it at:
http://www3.sympatico.ca/airblazer/PB_Winsock_API.zip

This was tested under Windows 2000/XP. With some modifications for handling the events, it could be compatible under Linux.

Cheers!
AMD 1.8 - 512mb - ATI All-In-Wonder Radeon 9000 pro - W2k Pro
BASIC programmers never die, they just return without gosub.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

I just noticed this!

I'm going to rip all the event-driven networking code out of my latest project and replace it with this.. I'm finding the event driven networking too unreliable (or my implementation too poor!!)

Very nice work - well organized and documented! Thanks again!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
AngelSoul
User
User
Posts: 55
Joined: Tue Jul 29, 2003 9:16 am
Location: Canada

Post by AngelSoul »

I'm glad that finally someone will put it to good use :)
AMD 1.8 - 512mb - ATI All-In-Wonder Radeon 9000 pro - W2k Pro
BASIC programmers never die, they just return without gosub.
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post by Kale »

Very Impressive! 8O
--Kale

Image
WernerZ
New User
New User
Posts: 3
Joined: Sun Sep 07, 2003 11:32 am

Post by WernerZ »

Great work - many thanks!
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

How is this better? The samples look almost exactly the same as the native PB winsock samples.

The difference? ICOP, multi threading.. what? Well, besides multi-ports I think...
coma
Enthusiast
Enthusiast
Posts: 164
Joined: Fri Aug 15, 2003 3:46 am
Location: Canada

Post by coma »

"The difference ?" = udp, very usefull for games :)


Does it work under Windows 98 ?
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

And this would allow you to write polling servers instead of event-driven ones. Useful for high traffic stuff!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
coma
Enthusiast
Enthusiast
Posts: 164
Joined: Fri Aug 15, 2003 3:46 am
Location: Canada

Post by coma »

what are "polling servers" exactly ?
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

How can it be useful when polling and event-driven is basically the same under-the-hood. Also, this is worthless for real server environment, whether it is low traffic to high traffic, if it does not use IOCP.
Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

How can it be useful when polling and event-driven is basically the same under-the-hood. Also, this is worthless for real server environment, whether it is low traffic to high traffic, if it does not use IOCP.
Can you offer any documentation or other proof to support this being worthless? While i'd love to just take your word for it I'd like to put my hands on something that tells me why it's worthless too :-)

Thanks!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Karbon
PureBasic Expert
PureBasic Expert
Posts: 2010
Joined: Mon Jun 02, 2003 1:42 am
Location: Ashland, KY
Contact:

Post by Karbon »

Noted... I've got to get used to Windows! Unix stuff really doesn't apply that much in this world!

Thanks!
-Mitchell
Check out kBilling for all your billing software needs!
http://www.k-billing.com
Code Signing / Authenticode Certificates (Get rid of those Unknown Publisher warnings!)
http://codesigning.ksoftware.net
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Here are a few more :)

http://msdn.microsoft.com/msdnmag/issues/1000/winsock/
http://support.microsoft.com/default.as ... us;q192800

If this was built in as a standard for the NetworkServer part of PB, well... I guess you can see where I am going... Maybe I'll take a wack at it after I'm done with the AES conversion.
AngelSoul
User
User
Posts: 55
Joined: Tue Jul 29, 2003 9:16 am
Location: Canada

Post by AngelSoul »

I mainly did this to allow multi server ports and UDP was tagged along with it. As for Linux i don't really care i'm not into that.
AMD 1.8 - 512mb - ATI All-In-Wonder Radeon 9000 pro - W2k Pro
BASIC programmers never die, they just return without gosub.
Post Reply