* Winsock API for PB released *

Developed or developing a new product in PureBasic? Tell the world about it.
dontmailme
Enthusiast
Enthusiast
Posts: 537
Joined: Wed Oct 29, 2003 10:35 am

Post 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 ;)
Paid up PB User !
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post 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
dontmailme
Enthusiast
Enthusiast
Posts: 537
Joined: Wed Oct 29, 2003 10:35 am

Post by dontmailme »

Well, if you do it, let me know, I might be able to make good use of IOCP ;)
Paid up PB User !
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post 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.
coma
Enthusiast
Enthusiast
Posts: 164
Joined: Fri Aug 15, 2003 3:46 am
Location: Canada

Post 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)
Post Reply