Page 2 of 2

Posted: Wed Nov 19, 2003 11:48 am
by dontmailme
What does this all boil down to then ? I'd like to write some IP/UDP Client Server programs and it seems I need IOCP on the server side to allow for many connections........

I'm a bit confused with this thread, there is the built in IP stuff which looks OK apart from the lack of UDP..... then there's this library by AngelSould which allows you to use UDP :) ....... but you say they are both no good for server side programs with many connections !?

Angelsoul, are you going to add IOCP to your API at some stage ? Or is someone else looking into this stuff ?

I'm not very up on IP programming so forgive my ineptitude here ;)

Posted: Wed Nov 19, 2003 5:45 pm
by Shannara
I know im looking into this stuff right now. In my VB server, I make use of a 3rd party tool for IOCP. I could write a PB using such an interface but that would require an outside ActiveX DLL, which is something I'm pretty much against for PB so *shrugs*

To answer your questions...

PB has a nice Winsock library, but is only really usefull (in the real world) for client-side applications. AngelSoul's Winsock Library is basically the same except for two enhancements, I believe. Ability to listen on more then one port, and to use UDP. It does not fix the server problem.

I mean, don't get me wrong. Attempts to use the libraries on the server side will get you about the same as using the horrible Winsock Control for VB, it'll die or lock up after a small amount of connections.

So we have yet a real server-side winsock solution for PB. I'll probably just write an interface to a free IOCP DLL I have for PB, then we can see from there. But as it stands now, it looks like hardly anybody here does network programming in PB, let alone a real server. So it may be good just for me :D

Posted: Wed Nov 19, 2003 6:24 pm
by dontmailme
Well, if you do it, let me know, I might be able to make good use of IOCP ;)

Posted: Mon Jan 12, 2004 8:44 pm
by Shannara
Sox is written in VC++ (unfortunately): http://www.pscode.com/vb/scripts/ShowCo ... 4&lngWId=3

However, it has vb code examples on how to use it. Unfortunately, it is an ActiveX DLL :) Sorry it took to long.. I can't believe how fast time flies.

Posted: Wed Jan 14, 2004 6:56 am
by coma
I want tu use this (great :)) lib for my game, but there's a little problem :
Works fine under w98 and xp, but with windows 98, wsVer=InitWinsock() return 0 as version number.

(w98 with winsock 2.2)