[muscle] Re: Setting a node value from the server

  • From: "Jeremy Friesner" <jaf@xxxxxxxxxxxx>
  • To: muscle@xxxxxxxxxxxxx
  • Date: Thu, 01 Jul 2004 09:21:35 PDT (-0700)

Hi Julien,

> I have a server and some clients playing together. I store a value 
> into a node by sending a PR=5FCOMMAND=5FSETDATA from a client. Here is my 
> problem: I want to store a value into a node directly from the 
> server. The only - working - way that I found is to create a "fake" 
> client from the server (overriding the ReadyToRun() method). And 
> then, this client sets the value like all the other "real" clients. 
> But this way is not very efficient.

I think the method you are looking for is StorageReflectSession::SetDataNode().
You should probably call it from your StorageReflectSession subclass's
AttachedToServer() method (after calling up to
StorageReflectSession::AttachedToServer() first).

Jeremy



Other related posts: