advise with .net remoting
the client (which is a server too) check if the server has a task for him
if there is avaliable task then the client operate a function in the server that return a class named (TaskClass).
on the client side i wrote a class that contain 2 variables - one is clientID and the other one is instance of TaskClass.
i put the class "TaskClass" in a class library as a dll ,this class is serializable.
is it reasonable? is it a "good programming"?
im not sure about what i did...it seems a little bit clumsy.
thanks in advanced
[550 byte] By [
ppl1] at [2008-2-14]
great, thanks.
another problem im having is that i need to give a client a unique id , so i think i will count each client that connected to the server and give him that number.
how to "give" the client his id? i know it not right to put it in the TaskClass and if i will create a method in the remote object to give him the id then it will be like the client operate 3 methods until he starts exectute a job (first to check if a task is avaliable, then to get his id and then to get the task).
so how can i do that right?