C
Cheryl
Dear all,
I have a question on implementing a callback function. Suppose I have a
main class which contains a static class to communicate with a remote
server.
I also have an array of objects in which each of them can call and receive
results from the static server class.
class testobject
{
void testobject()
{
ServerClass.Oncallback += new Server.callback(server_callback);
}
void callserver()
{...}
void server_callback
{
}
}
However, with this design, all objects receive the callback once the server
callback due to the multicasting property. If I want only the object which
sends out the command to receive the callback, how should I implement that?
Thanks.
I have a question on implementing a callback function. Suppose I have a
main class which contains a static class to communicate with a remote
server.
I also have an array of objects in which each of them can call and receive
results from the static server class.
class testobject
{
void testobject()
{
ServerClass.Oncallback += new Server.callback(server_callback);
}
void callserver()
{...}
void server_callback
{
}
}
However, with this design, all objects receive the callback once the server
callback due to the multicasting property. If I want only the object which
sends out the command to receive the callback, how should I implement that?
Thanks.