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... 4 1736 ba******@gmail.com 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...
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 : ba******@gmail.com 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...
ba******@gmail.com wrote:
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 :
>ba******@gmail.com 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...
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 : ba******@gmail.com wrote:
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 : ba******@gmail.com 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... This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Dennis Owens |
last post by:
I want to develop a Client/Server messaging system that
does not require Microsoft messaging. I want to use
the .Net remoting, but I am having some real problems with
the remoting. The remoting...
|
by: Dennis Owens |
last post by:
Read below for previous conversation.
We are developing an application that will some day run on
anything from a computer down to a PDA (this is were the
Lightweight comes in). The messaging...
|
by: Uchiha Jax |
last post by:
Hello everyone,
I am a plenty silly person who is trying to
learn .NET remoting through trial and error (all articles I read are going
over my head at the moment (mostly) so I thought i'd give...
|
by: S.Creek |
last post by:
Hi,
I am trying to build a multi clients application with C# that will send
and receive messages using a listener on a server,
the computers are all on the same LAN, the listener need to...
|
by: GTi |
last post by:
I have a program that will act as an Remoting server AND client.
This program can be loaded on one macine or it can be loaded on several
machines.
But it will only be one master program...
|
by: Lucas Tam |
last post by:
Does anyone have a good articles that describes the pros and cons of Web
Services vs. Remoting Hosted in IIS?
Is there a reason to use either or?
With Remoting Hosting in IIS, is it possible...
|
by: Thomee Wright |
last post by:
I'm having a problem with a pair of applications I'm developing. I have a
server application which interacts with several instruments, and a client app
which connects to the server and provides a...
|
by: Palvinder Singh |
last post by:
Hello google group peeps,
I am new to remoting, but have a grasp of it.
I am trying to create a server/client application, which will be
deployed over an intranet. I have upwards of five...
|
by: =?Utf-8?B?Q2hyaXN0aWFuIEhhdmVs?= |
last post by:
Hi,
in a existing application (DCOM server and client, both in VC++) we have
very often problems with the DCOM-configuration.
Is the requiered configuration (open ports) in applications using...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |