[muscle] Re: PR_NAME_SUBSCRIBE_QUIETLY
- From: Jeremy Friesner <jaf@xxxxxxxxxxxx>
- To: muscle@xxxxxxxxxxxxx
- Date: Wed, 14 Apr 2004 00:13:03 -0700
Hi David,
I just downloaded v2.46 and tested the PR_NAME_SUBSCRIBE_QUIETLY feature =
(by=20
modifying portablereflectclient) and it appears to be working properly. =20
AFAIK that code hasn't been modified in quite a long time. You may want =
to=20
double-check your code, and/or post a code snippet here, so I can check i=
t to=20
make sure it is correct.
FWIW, here is the code I modified in portablereflectclient.cpp:
[around line 131]
case 'p':
ref()->what =3D PR_COMMAND_SETPARAMETERS;
ref()->AddString(&text[2], "");
ref()->AddBool(PR_NAME_SUBSCRIBE_QUIETLY, true); // I added this l=
ine
break;
Then I ran muscled, ran portablereflectclient, and entered commands to cr=
eate=20
a database node and subscribe to it. With the above modification, here i=
s=20
the output I get:
[jaf@spackle test]$ ./portablereflectclient localhost
p !Self
You typed: [p !Self]
Sending message...
s Node
You typed: [s Node]
Sending message...
p SUBSCRIBE:*
You typed: [p SUBSCRIBE:*]
Sending message...
And here is the output I get without the modification:
[jaf@spackle test]$ ./portablereflectclient localhost
p !Self
You typed: [p !Self]
Sending message...
s Node
You typed: [s Node]
Sending message...
p SUBSCRIBE:*
You typed: [p SUBSCRIBE:*]
Sending message...
Heard message from server:-----------------------------------
Message: this=3D0x80a82e8, what=3D'!Pr2' (558920242/0x21507232), entryCo=
unt=3D1,=20
flatSize=3D58
Entry: Name=3D[/127.0.0.1/5/Node], GetNumItems()=3D1, TypeCode()=3D'MSG=
G'=20
(1297303367) flatSize=3D16
0. [what=3D'HELO' (1212501071/0x48454c4f), flattenedSize=3D12, numFie=
lds=3D0]
Message: this=3D0x80a8f00, what=3D'HELO' (1212501071/0x48454c4f),=20
entryCount=3D0, flatSize=3D12
-------------------------------------------------------------
-Jeremy
On Tuesday 13 April 2004 11:58 pm, you wrote:
> I'm using MUSCLE 2.46 and I can't get PR_NAME_SUBSCRIBE_QUIETLY to work
> correctly. I know this has worked in previous versions.
>
> If the PR_NAME_SUBSCRIBE_QUIETLY is set to true in a subscription messa=
ge I
> don't expect to get the current value of the node. Is this a newly
> introduced bug.
>
> Has anybody experienced this?
>
> Best Regards,
> David Svanberg
> Software Engineer Poseidon Simulation AS
> Naeringsparken, P.O.Box 89, N-8376 Leknes, Norway
> Tel:+47 760 54 330 Fax:+47 760 82 006
> E-mail:ds@xxxxxxxxxxx www.poseidon.no
>
> POSEIDON - your maritime training partner
- References:
- [muscle] PR_NAME_SUBSCRIBE_QUIETLY
- From: David Svanberg
Other related posts:
- » [muscle] PR_NAME_SUBSCRIBE_QUIETLY
- » [muscle] Re: PR_NAME_SUBSCRIBE_QUIETLY
- [muscle] PR_NAME_SUBSCRIBE_QUIETLY
- From: David Svanberg