Page 1 of 2

* Winsock API for PB released *

Posted: Mon Sep 01, 2003 11:26 am
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!

Posted: Sun Oct 12, 2003 5:00 pm
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!

Posted: Mon Oct 13, 2003 9:46 am
by AngelSoul
I'm glad that finally someone will put it to good use :)

Posted: Mon Oct 13, 2003 12:18 pm
by Kale
Very Impressive! 8O

Posted: Mon Oct 13, 2003 2:02 pm
by WernerZ
Great work - many thanks!

Posted: Fri Nov 07, 2003 8:11 pm
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...

Posted: Mon Nov 10, 2003 6:07 pm
by coma
"The difference ?" = udp, very usefull for games :)


Does it work under Windows 98 ?

Posted: Mon Nov 10, 2003 7:15 pm
by Karbon
And this would allow you to write polling servers instead of event-driven ones. Useful for high traffic stuff!

Posted: Mon Nov 10, 2003 7:25 pm
by coma
what are "polling servers" exactly ?

Posted: Mon Nov 10, 2003 7:39 pm
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.

Posted: Mon Nov 10, 2003 8:56 pm
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!

Posted: Mon Nov 10, 2003 9:32 pm
by Shannara

Posted: Mon Nov 10, 2003 9:39 pm
by Karbon
Noted... I've got to get used to Windows! Unix stuff really doesn't apply that much in this world!

Thanks!

Posted: Mon Nov 10, 2003 10:02 pm
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.

Posted: Tue Nov 11, 2003 8:10 am
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.