ConnectionID question

Ruslan Zasukhin ruslan_zasukhin at valentina-db.com
Tue Oct 9 02:50:01 CDT 2012


On 10/9/12 10:07 AM, "François Van Lerberghe" <frvanlerberghe at gmail.com>
wrote:

Hi François, 

> Hello Ruslan,
> 
> When a client connect to the server, we can get its ConnectionID. Is it a
> complete random number ? Has it a minimum and maximum ?

No promises.

Yes consider it as random,
In range of declared type   ULONG  ( uint_32  )

 
> I want to rely on it to have a number unique to the client, but I need a
> number not greater than 20. If I know that this number is between, for
> example, 15 and 35, I could use a modulo function to meet my needs.
> 
> Can you say me more on this subject.

You need something else ...

Each client on next connect must give you same number?
Then you need some of clints prefs on HDD on his side



-- 
Best regards,

Ruslan Zasukhin
VP Engineering and New Technology
Paradigma Software, Inc

Valentina - Joining Worlds of Information
http://www.paradigmasoft.com

[I feel the need: the need for speed]




More information about the Valentina mailing list