From 481fdeae429362c7344445a1a1e0b6cd65b00dba Mon Sep 17 00:00:00 2001 From: Mark Taylor Date: Wed, 26 Oct 2011 12:25:44 +0000 Subject: [PATCH] replace MessageSender -target flag with -targetid and -targetname git-svn-id: file:///mbt/data/jsamp/svn-mirror/trunk/astrogrid/samp@27294 d07e2994-6e00-4123-b050-8522f38abc7a --- src/site/xdoc/commands.xml | 23 +++++++++++++++++++---- src/site/xdoc/history.xml | 3 +++ 2 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/site/xdoc/commands.xml b/src/site/xdoc/commands.xml index 37f03e7..a4ecb37 100644 --- a/src/site/xdoc/commands.xml +++ b/src/site/xdoc/commands.xml @@ -446,10 +446,25 @@ any responses received in response. if possible (note double-quoted strings are the only permitted scalars), otherwise the value will be interpreted as a plain string. -
-target <receiverId>
-
Specifies the SAMP public ID for a client to which this message will be - sent. This flag may be repeated to send the same messsage to more than - one recipient. If omitted, the message is broadcast to all +
-targetid <receiverId>
+
Specifies the SAMP public ID for a client to which this message + will be sent. + This flag may be repeated, or combined with -targetname, + to send the same messsage to more than one recipient. + If neither this nor -targetname is supplied, + the message is broadcast to all + clients which are subscribed to the MType. +
+
-targetname <receiverName>
+
Specifies an application name (samp.name metadata item) + identifying a client to which this message will be sent. + Names are matched case-insensitively. + If multiple clients with the same name are registered, only one + will be messaged. + This flag may be repeated, or combined with -targetid, + to send the same messsage to more than one recipient. + If neither this nor -targetid is supplied, + the message is broadcast to all clients which are subscribed to the MType.
-mode sync|async|notify
diff --git a/src/site/xdoc/history.xml b/src/site/xdoc/history.xml index a39ad15..e43408c 100644 --- a/src/site/xdoc/history.xml +++ b/src/site/xdoc/history.xml @@ -771,6 +771,9 @@ for SAMP objects in a few places:
  • Tone down warning in the Web SAMP confirmation dialogue slightly to reflect improved security measures in default Web Profile configuration.
  • +
  • The messagesender command-line tool has new flags + -targetname and -targetid which replace the + previous -target flag.
  • Add French translation for Web SAMP confirmation dialogue (thanks to Thomas Boch).
  • URL encode argument of ResourceHandler.addResource