Client numbers with flashserver object

Sep 21, 2006 at 9:50pm

Client numbers with flashserver object

Hey list,

If got a problem with the great flashserver object.
On a website people can give me orders by the .swf file. But with more users on the same moment, i want to get each user separate time to control. But if there are like 10 users and clients are go away for instance client #2, i don’t get that information through and i don’t want give client #2 time to give orders anymore because it don’t excist anymore. The flashserver has then 9 users but user 10 also still exist. I see only the information appear which i need in the max window by using the print message in the flashserver object. Is there a way to grab that info, or do you know an other solution to get all the existing users?

Thanks in advance,

Aart Muis / Aartcore

#27726
Sep 22, 2006 at 6:57am

it is very hard to understand your problem.
flashserver is great but i think it is no longer nessecery.
check out the udpsendrecieve in 1.6 as it works very well with flash. also
read about OSC, opensoundcontrol
if you want you can try explaining again, but slower.

2006/9/21, aartcore :
>
>
> Hey list,
>
> If got a problem with the great flashserver object.
> On a website people can give me orders by the .swf file. But with more
> users on the same moment, i want to get each user separate time to control.
> But if there are like 10 users and clients are go away for instance client
> #2, i don’t get that information through and i don’t want give client #2
> time to give orders anymore because it don’t excist anymore. The
> flashserver has then 9 users but user 10 also still exist. I see only the
> information appear which i need in the max window by using the print message
> in the flashserver object. Is there a way to grab that info, or do you know
> an other solution to get all the existing users?
>
> Thanks in advance,
>
> Aart Muis / Aartcore
>

#84166
Sep 22, 2006 at 8:18am

Hey Yair,

The problem with the flashserver is that you can see how many users there are, but not know which number they have. So if i want to give them separate time to send messages i have to know. If it’s like 3 users in total and they are like client #1, client #2 and client #3 it’s not so hard to make it work that each client get some time. (i use now a counter with the number of clients linked with the maximum to count to)
The problem comes when client #2 leaves, then there are in total 2 users but then it’s like client #1 and client #3 so than my counter system don’t work anymore. And will give client #2 some time but he doesn’t exist anymore. But this is now very basic example but with more people it’s getting much more complex like with 7 clients with clientnumbers vary from 1 till for instance till 13. And don’t get it managed to get out of the flash server all the clients number who are still there. Only the print message in the flashserver will do but that appears only in the Max window, probably direct from the object so i cannot catch it.

Or if there is a way to get the info from the Max window back in my patch then i can work it out.

I know OSC also (i use it alot), i don’t use 1.6 yet because my exposition is already running if found it to risky to switch to 4.6 and 1.6. If it’s offer a solution i will certainly do it. Unfortunatly I’m not so very good in programming in flash. And it’s runnin on internet, i don’t know how to make a sort of new flash server with OSC, because there a lot different IP’s out there,..

Here is the link of the running project now i let people sent messages at the same time but i get now already a lot of users:

http://www.aartcore.com/controlmelife

Thanks in advance, i hope you get the problem…

Aart Muis / Aartcore

#84167
Sep 22, 2006 at 11:54am

assign each user a unique id (as in random number or string). store it in a
coll and use .
if your going clever, take their ip as identifier and then you can track
returning users.
try the doshack java object and rip the ip’s from the netstat command.
this can work but if 2 users are behind the same router you need something
else.

2006/9/22, aartcore :
>
>
> Hey Yair,
>
> The problem with the flashserver is that you can see how many users there
> are, but not know which number they have. So if i want to give them separate
> time to send messages i have to know. If it’s like 3 users in total and they
> are like client #1, client #2 and client #3 it’s not so hard to make it work
> that each client get some time. (i use now a counter with the number of
> clients linked with the maximum to count to)
> The problem comes when client #2 leaves, then there are in total 2 users
> but then it’s like client #1 and client #3 so than my counter system don’t
> work anymore. And will give client #2 some time but he doesn’t exist
> anymore. But this is now very basic example but with more people it’s
> getting much more complex like with 7 clients with clientnumbers vary from 1
> till for instance till 13. And don’t get it managed to get out of the flash
> server all the clients number who are still there. Only the print message in
> the flashserver will do but that appears only in the Max window, probably
> direct from the object so i cannot catch it.
>
> Or if there is a way to get the info from the Max window back in my patch
> then i can work it out.
>
> I know OSC also (i use it alot), i don’t use 1.6 yet because my exposition
> is already running if found it to risky to switch to 4.6 and 1.6. If it’s
> offer a solution i will certainly do it. Unfortunatly I’m not so very good
> in programming in flash. And it’s runnin on internet, i don’t know how to
> make a sort of new flash server with OSC, because there a lot different IP’s
> out there,..
>
> Here is the link of the running project now i let people sent messages at
> the same time but i get now already a lot of users:
>
> http://www.aartcore.com/controlmelife
>
> Thanks in advance, i hope you get the problem…
>
> Aart Muis / Aartcore
>

#84168
Sep 22, 2006 at 3:05pm

aartcore wrote:

> Hey list,
>
> If got a problem with the great flashserver object.
> On a website people can give me orders by the .swf file. But with more users on the same moment, i want to get each user separate time to control. But if there are like 10 users and clients are go away for instance client #2, i don’t get that information through and i don’t want give client #2 time to give orders anymore because it don’t excist anymore. The flashserver has then 9 users but user 10 also still exist. I see only the information appear which i need in the max window by using the print message in the flashserver object. Is there a way to grab that info, or do you know an other solution to get all the existing users?

If I got you right you want to figure out whether, lets say client #2,
still is connected or disappeared?

Well, you could monitor the ‘number of connected clients’ and on every
change you send a dummy message to all clients you knwo of. Clients
would have to respond with something like ‘I’m still alaive’. If you get
no response, you found the client that disappeared.

Olaf

#84169
Sep 22, 2006 at 5:16pm

Quote: Olaf Matthes wrote on Fri, 22 September 2006 09:05
—————————————————-

>
>
> Well, you could monitor the ‘number of connected clients’ and on every
> change you send a dummy message to all clients you knwo of. Clients
> would have to respond with something like ‘I’m still alaive’. If you get
> no response, you found the client that disappeared.
>
> Olaf
>
—————————————————-

Thanks Olaf and Yair for the reply,

I work on mac now and the doshack java object is only for win and then i don’t know if they are really there, because i noticied now with tests that people logged in but are away from their computers or have another browser window in front of my page or so. So i like the idea what Olaf says to check if they are still awake behind their computers and have my webpage on top.

Greetz,

Aart Muis / Aartcore

#84170

You must be logged in to reply to this topic.