identification of remoting clients.

B

baramuse

Hi all,

before starting I must say that I'm a remoting beginner so I certainly
didn't assimilate all the tricks of remoting so please be kind ;)

Now here is my interrogation:
I'm working on a client/server architecture for a callcenter software.
The server is the only one connected to the oracle database and all the
different clients (operator/admin...) are "connected" to the server via
remoting (it's the best I've found to communicate between server and
clients, am I doing wrong?).

I've managed to call server-instancied objects, make some events fired
over the network... the basic things :)
Now I was wondering: I must identify all the clients requests to give
them the good informations as they will all share the same
server-instancied object. And I'd like not to pass an id with every
client request so is there a way that the server identify itself the
client (once the client has been authentified) ?
I'm not sure to be clear...
Let me give an example :) :
when the client authentificate with the server (with a login/password)
the server would keep something that could distinguish this client from
the other (that's what i'm looking for, perhaps an channl identifier?)
and when that client would call other methods on the server object, the
server will be able to identify the client to give it the good
stuff....

Hope somebody can understand :s

PS: perhaps i use non-english words and i'm sorry, still working on it
;)

Thanks a lot in advance for your answers/feedback...
 
J

Jianwei Sun

Hi all,

before starting I must say that I'm a remoting beginner so I certainly
didn't assimilate all the tricks of remoting so please be kind ;)

Now here is my interrogation:
I'm working on a client/server architecture for a callcenter software.
The server is the only one connected to the oracle database and all the
different clients (operator/admin...) are "connected" to the server via
remoting (it's the best I've found to communicate between server and
clients, am I doing wrong?).

I've managed to call server-instancied objects, make some events fired
over the network... the basic things :)
Now I was wondering: I must identify all the clients requests to give
them the good informations as they will all share the same
server-instancied object. And I'd like not to pass an id with every
client request so is there a way that the server identify itself the
client (once the client has been authentified) ?
I'm not sure to be clear...
Let me give an example :) :
when the client authentificate with the server (with a login/password)
the server would keep something that could distinguish this client from
the other (that's what i'm looking for, perhaps an channl identifier?)
[Do you store the user in the database table? if that's the case, When
the user logged on, you can have identifier (like row id, unique id in
the table). Will that work for you??

Can you dynamically hash some value if you cannot use the above approach?

]
 
B

baramuse

hi :) thanks for answering :)

Yes I do have an unique ID for each authentified user stored in a
database.
But when, after authentification, one client calls a function in the
remote object, how can I identify which client is calling (there i
could ask for the client its uid but if so I need to add an uid
parameter to each function the client could call from the object...).
That's why I was wondering if the object, instencied on the server
side, could, itself, identify wich client is call the function. Perhpas
I am looking for an UID generated by the remote channel created by each
client?

Jianwei Sun a écrit :
Hi all,

before starting I must say that I'm a remoting beginner so I certainly
didn't assimilate all the tricks of remoting so please be kind ;)

Now here is my interrogation:
I'm working on a client/server architecture for a callcenter software.
The server is the only one connected to the oracle database and all the
different clients (operator/admin...) are "connected" to the server via
remoting (it's the best I've found to communicate between server and
clients, am I doing wrong?).

I've managed to call server-instancied objects, make some events fired
over the network... the basic things :)
Now I was wondering: I must identify all the clients requests to give
them the good informations as they will all share the same
server-instancied object. And I'd like not to pass an id with every
client request so is there a way that the server identify itself the
client (once the client has been authentified) ?
I'm not sure to be clear...
Let me give an example :) :
when the client authentificate with the server (with a login/password)
the server would keep something that could distinguish this client from
the other (that's what i'm looking for, perhaps an channl identifier?)
[Do you store the user in the database table? if that's the case, When
the user logged on, you can have identifier (like row id, unique id in
the table). Will that work for you??

Can you dynamically hash some value if you cannot use the above approach?

]
and when that client would call other methods on the server object, the
server will be able to identify the client to give it the good
stuff....

Hope somebody can understand :s

PS: perhaps i use non-english words and i'm sorry, still working on it
;)

Thanks a lot in advance for your answers/feedback...
 
J

Jianwei Sun

hi :) thanks for answering :)

Yes I do have an unique ID for each authentified user stored in a
database.
But when, after authentification, one client calls a function in the
remote object, how can I identify which client is calling (there i
could ask for the client its uid but if so I need to add an uid
parameter to each function the client could call from the object...).
That's why I was wondering if the object, instencied on the server
side, could, itself, identify wich client is call the function. Perhpas
I am looking for an UID generated by the remote channel created by each
client?

[When you client is authenticated on the server side by
username/password, can you set the uniqueId to one property of the
client object.

I am not exactly sure what's your approach. But based on my experience
on a client/server communication (socket based) , when a remote client
is signed on, i immediately set all the properties for that client (
like client type, sign on time, etc ...), when the client is signing
off, I clear those properties.

]


Jianwei Sun a écrit :
Hi all,

before starting I must say that I'm a remoting beginner so I certainly
didn't assimilate all the tricks of remoting so please be kind ;)

Now here is my interrogation:
I'm working on a client/server architecture for a callcenter software.
The server is the only one connected to the oracle database and all the
different clients (operator/admin...) are "connected" to the server via
remoting (it's the best I've found to communicate between server and
clients, am I doing wrong?).

I've managed to call server-instancied objects, make some events fired
over the network... the basic things :)
Now I was wondering: I must identify all the clients requests to give
them the good informations as they will all share the same
server-instancied object. And I'd like not to pass an id with every
client request so is there a way that the server identify itself the
client (once the client has been authentified) ?
I'm not sure to be clear...
Let me give an example :) :
when the client authentificate with the server (with a login/password)
the server would keep something that could distinguish this client from
the other (that's what i'm looking for, perhaps an channl identifier?)
[Do you store the user in the database table? if that's the case, When
the user logged on, you can have identifier (like row id, unique id in
the table). Will that work for you??

Can you dynamically hash some value if you cannot use the above approach?

]
and when that client would call other methods on the server object, the
server will be able to identify the client to give it the good
stuff....

Hope somebody can understand :s

PS: perhaps i use non-english words and i'm sorry, still working on it
;)

Thanks a lot in advance for your answers/feedback...
 
B

baramuse

hummm perhaps my approch is wrong...
As I was seeing things, the authentification object was on the server
and shared with all the clients. Les emulate the object:
w'ell say there will be two methods:

int Authentificate(string login, string password);
int WhoAmI();

With the first one, called first, the client authentificate itself to
the server and get its uid back if its ok.

then later I want him to call WhoAmI without parameter, and the server
would be able to recognize the client (from its remote channel for
example, saved in the Authentificate() method, this is what I'm looking
for...) and would return its UID...

Is it more clear?
Jianwei Sun a écrit :
hi :) thanks for answering :)

Yes I do have an unique ID for each authentified user stored in a
database.
But when, after authentification, one client calls a function in the
remote object, how can I identify which client is calling (there i
could ask for the client its uid but if so I need to add an uid
parameter to each function the client could call from the object...).
That's why I was wondering if the object, instencied on the server
side, could, itself, identify wich client is call the function. Perhpas
I am looking for an UID generated by the remote channel created by each
client?

[When you client is authenticated on the server side by
username/password, can you set the uniqueId to one property of the
client object.

I am not exactly sure what's your approach. But based on my experience
on a client/server communication (socket based) , when a remote client
is signed on, i immediately set all the properties for that client (
like client type, sign on time, etc ...), when the client is signing
off, I clear those properties.

]


Jianwei Sun a écrit :
(e-mail address removed) wrote:
Hi all,

before starting I must say that I'm a remoting beginner so I certainly
didn't assimilate all the tricks of remoting so please be kind ;)

Now here is my interrogation:
I'm working on a client/server architecture for a callcenter software.
The server is the only one connected to the oracle database and all the
different clients (operator/admin...) are "connected" to the server via
remoting (it's the best I've found to communicate between server and
clients, am I doing wrong?).

I've managed to call server-instancied objects, make some events fired
over the network... the basic things :)
Now I was wondering: I must identify all the clients requests to give
them the good informations as they will all share the same
server-instancied object. And I'd like not to pass an id with every
client request so is there a way that the server identify itself the
client (once the client has been authentified) ?
I'm not sure to be clear...
Let me give an example :) :
when the client authentificate with the server (with a login/password)
the server would keep something that could distinguish this client from
the other (that's what i'm looking for, perhaps an channl identifier?)
[Do you store the user in the database table? if that's the case, When
the user logged on, you can have identifier (like row id, unique id in
the table). Will that work for you??

Can you dynamically hash some value if you cannot use the above approach?

]

and when that client would call other methods on the server object, the
server will be able to identify the client to give it the good
stuff....

Hope somebody can understand :s

PS: perhaps i use non-english words and i'm sorry, still working on it
;)

Thanks a lot in advance for your answers/feedback...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

remoting 1
Remoting trouble 1
Remoting, Singleton and BackGroundWorker problem 1
quick NEWBIE on remoting :) 2
Remoting architecture and serialization 2
Remoting/Threading 2
Remoting Problem 3
.NET Remoting. 4

Top