ConnectionID() on ServerID

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

ConnectionID() on ServerID

Post by Tranquil »

Hello PB Team.

It would be nice if it would be possible to get the network socket handle of the ServerID returndes by createnetworkserver in conjunction with #PB_Any so that API calls can be done with these.

I tried ConnectionID on a server ID but it always failes.

Thanks
Mike
Tranquil
Tranquil
Addict
Addict
Posts: 952
Joined: Mon Apr 28, 2003 2:22 pm
Location: Europe

Post by Tranquil »

Boom! Whats on this one?

ConnectionID does still not work in conjunction with a networkserver. So, how do I get the server hande (socket) using native PB Commands? Is this still not possible? (It was possible till ~Version 4.0) :-(
Tranquil
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

There actually is a ServerID(#Server) command in 4.30

Sorry, it must have been overlooked in the changelog and documentation. I did not even know it existed until i tried to create it just now :)
quidquid Latine dictum sit altum videtur
klaver
Enthusiast
Enthusiast
Posts: 147
Joined: Wed Jun 28, 2006 6:55 pm
Location: Schröttersburg

Post by klaver »

So is there going to be released an updated version of docs?
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Not for this little thing.

Its simple: just stick in the PB server number and you get the socket out, thats all.
quidquid Latine dictum sit altum videtur
Post Reply