application.getClientInfo()

Hello,

would a application.getClientInfo() be doable that returns an Array that looks like

arguments*[0] = client IP address*
arguments*[1] = client name*
arguments*[2] = Array of client info added*
This would allow us
1. Receive all clients currently online by name
2. Receive the IP address of a certain client name
3. Receive all IP addresses in use by clients
4. Receive any client info added to the server for a given name/IP address
5. Easier and more straightforward use of the UDP plugin :-)
Thanks
Patrick

Hello,

I just realized that application.getUserProperty() basically does what I need, but it does that only from the perspective of the currently logged in user.

As far as I understood this function, a userProperty is stored on the server. If yes, could that be enhanced to

application.getUserProperty(String name, [String username])

With that we could pass all kinds of user related stuff on the server and use a loop over all users to retrieve all kinds of properties?

That’d be cool!

Thanks
Patrick

I think User Properties are stored on the Client side, since they are located in the client properties file.

Why not build something like this yourself by having a DB table where you register a client when they log in and remove the record when they log out?

Paul

I have something like that, but some clients are not properly closed and so forth. I would like to be able to store some stuff on the server and retrieve it… I think that is more convenient. But in general you are right…

Hello Servoyians!

patrick:
would a application.getClientInfo() be doable that returns an Array that looks like:

arguments*[0] = client IP address*
arguments*[1] = client name*
arguments*[2] = Array of client info added*
This would allow us
1. Receive all clients currently online by name
2. Receive the IP address of a certain client name
3. Receive all IP addresses in use by clients
[/quote]
Would love to have this as a standard function in Servoy.
Would this be possible?