• R/O
  • SSH
  • HTTPS

ttssh2: Commit


Commit MetaInfo

Revision6889 (tree)
Time2017-08-04 12:05:43
Authordoda

Log Message

senlnmulticast を追加 Ticket: #37414

取りあえず動作は sendlnbroadcast 準拠。(同じ関数を使っているから)

Change Summary

Incremental Difference

--- trunk/teraterm/ttpmacro/ttmparse.c (revision 6888)
+++ trunk/teraterm/ttpmacro/ttmparse.c (revision 6889)
@@ -358,6 +358,7 @@
358358 else if (_stricmp(Str,"sendbreak")==0) *WordId = RsvSendBreak;
359359 else if (_stricmp(Str,"sendbroadcast")==0) *WordId = RsvSendBroadcast;
360360 else if (_stricmp(Str,"sendlnbroadcast")==0) *WordId = RsvSendlnBroadcast;
361+ else if (_stricmp(Str,"sendlnmulticast")==0) *WordId = RsvSendlnMulticast;
361362 else if (_stricmp(Str,"sendmulticast")==0) *WordId = RsvSendMulticast;
362363 else if (_stricmp(Str,"setfileattr")==0) *WordId = RsvSetFileAttr;
363364 else if (_stricmp(Str,"setmulticastname")==0) *WordId = RsvSetMulticastName;
--- trunk/teraterm/ttpmacro/ttl.c (revision 6888)
+++ trunk/teraterm/ttpmacro/ttl.c (revision 6889)
@@ -4080,6 +4080,7 @@
40804080 return 0;
40814081 }
40824082
4083+// sendbroadcast / sendlnbroadcast の二つから利用 (crlfの値で動作を変える)
40834084 static WORD TTLSendBroadcast(BOOL crlf)
40844085 {
40854086 TStrVal buf;
@@ -4095,7 +4096,6 @@
40954096 return SendCmnd(CmdSendBroadcast, 0);
40964097 }
40974098
4098-// "setmulticastname"コマンド (2009.3.5 yutaka)
40994099 WORD TTLSetMulticastName()
41004100 {
41014101 TStrVal Str;
@@ -4109,8 +4109,8 @@
41094109 return SendCmnd(CmdSetMulticastName, 0);
41104110 }
41114111
4112-// "sendmulticast"コマンド (2009.3.5 yutaka)
4113-WORD TTLSendMulticast()
4112+// sendmulticast / sendlnmulticast の二つから利用 (crlfの値で動作を変える)
4113+WORD TTLSendMulticast(BOOL crlf)
41144114 {
41154115 TStrVal buf, Str;
41164116 WORD Err;
@@ -4124,7 +4124,7 @@
41244124 if (Err!=0) return Err;
41254125 SetFile(Str);
41264126
4127- if ((Err = GetBroadcastString(buf, MaxStrLen, FALSE)) != 0)
4127+ if ((Err = GetBroadcastString(buf, MaxStrLen, crlf)) != 0)
41284128 return Err;
41294129
41304130 SetSecondFile(buf);
@@ -6209,8 +6209,10 @@
62096209 Err = TTLSendBroadcast(FALSE); break;
62106210 case RsvSendlnBroadcast:
62116211 Err = TTLSendBroadcast(TRUE); break;
6212+ case RsvSendlnMulticast:
6213+ Err = TTLSendMulticast(TRUE); break;
62126214 case RsvSendMulticast:
6213- Err = TTLSendMulticast(); break;
6215+ Err = TTLSendMulticast(FALSE); break;
62146216 case RsvSetMulticastName:
62156217 Err = TTLSetMulticastName(); break;
62166218 case RsvSendFile:
--- trunk/teraterm/ttpmacro/ttmparse.h (revision 6888)
+++ trunk/teraterm/ttpmacro/ttmparse.h (revision 6889)
@@ -232,6 +232,7 @@
232232 #define RsvFileUnLock 154
233233 #define RsvContinue 155
234234 #define RsvRegexOption 156
235+#define RsvSendlnMulticast 157
235236
236237 #define RsvSetDebug 175
237238 #define RsvYmodemRecv 176
--- trunk/doc/ja/html/about/history.html (revision 6888)
+++ trunk/doc/ja/html/about/history.html (revision 6889)
@@ -44,6 +44,7 @@
4444 <ul>
4545 <li>teraterm.ini に <a href="../setup/teraterm-misc.html#LogTimestampUTC">LogTimestampUTC</a> エントリを追加した。デフォルトはoff。</li>
4646 </ul></li>
47+ <li><a href="../macro/command/sendlnmulticast.html">sendlnmulticast</a> マクロコマンドを追加した。</li>
4748 </ul>
4849 </li>
4950
--- trunk/doc/ja/html/macro/command/sendlnmulticast.html (revision 0)
+++ trunk/doc/ja/html/macro/command/sendlnmulticast.html (revision 6889)
@@ -0,0 +1,54 @@
1+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2+ "http://www.w3.org/TR/html4/strict.dtd">
3+<html>
4+<head>
5+ <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
6+ <title>sendlnmulticast</title>
7+ <meta http-equiv="Content-Style-Type" content="text/css">
8+ <link rel="stylesheet" href="../../style.css" type="text/css">
9+</head>
10+
11+<body>
12+
13+
14+<h1>sendlnmulticast</h1>
15+
16+<p>
17+データと改行をマルチキャスト送信する。
18+</p>
19+
20+<pre class="macro-syntax">
21+sendlnmulticast &lt;multicastname&gt; &lt;data1&gt; &lt;data2&gt;....
22+</pre>
23+
24+<h2>解説</h2>
25+
26+<p>
27+文字列とそれに続く改行文字を、指定した端末にマルチキャスト送信する。<br>
28+&lt;data&gt; の形式は、<a href="sendmulticast.html">"sendmulticast"</a>コマンドと同じ。
29+</p>
30+
31+<h2>例</h2>
32+
33+<pre class="macro-example">
34+mcastname = "multicast-test"
35+
36+connect "server-a"
37+setmulticastname mcastname
38+
39+unlink
40+
41+connect "server-b"
42+setmulticastname mcastname
43+
44+sendlnmulticast mcastname "ls -l"
45+</pre>
46+
47+<h2>参照</h2>
48+<ul>
49+ <li><a href="sendmulticast.html">sendmulticast</a></li>
50+ <li><a href="setmulticastname.html">setmulticastname</a></li>
51+</ul>
52+
53+</body>
54+</html>
--- trunk/doc/en/html/about/history.html (revision 6888)
+++ trunk/doc/en/html/about/history.html (revision 6889)
@@ -44,6 +44,7 @@
4444 <ul>
4545 <li>added the <a href="../setup/teraterm-misc.html#LogTimestampUTC">LogTimestampUTC</a> entry in the teraterm.ini file. The default is off.</li>
4646 </ul></li>
47+ <li>added the <a href="../macro/command/sendlnmulticast.html">sendlnmulticast</a> command.</li>
4748 </ul>
4849 </li>
4950
--- trunk/doc/en/html/macro/command/sendlnmulticast.html (revision 0)
+++ trunk/doc/en/html/macro/command/sendlnmulticast.html (revision 6889)
@@ -0,0 +1,55 @@
1+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2+ "http://www.w3.org/TR/html4/strict.dtd">
3+<html>
4+<head>
5+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
6+ <title>sendlnmulticast</title>
7+ <meta http-equiv="Content-Style-Type" content="text/css">
8+ <link rel="stylesheet" href="../../style.css" type="text/css">
9+</head>
10+
11+<body>
12+
13+
14+<h1>sendlnmulticast</h1>
15+
16+<p>
17+Multicast the data with new-line.
18+</p>
19+
20+<pre class="macro-syntax">
21+sendlnmulticast &lt;multicastname&gt; &lt;data1&gt; &lt;data2&gt;....
22+</pre>
23+
24+<h2>Remarks</h2>
25+
26+<p>
27+Causes Tera Term to multicast characters followed by a new-line character to selected terminals, and then the data is sent to the host.<br>
28+Format of &lt;data&gt; is the same as the "<a href="sendmulticast.html">sendmulticast</a>" command.
29+</p>
30+
31+<h2>Example</h2>
32+
33+<pre class="macro-example">
34+mcastname = "multicast-test"
35+
36+connect "server-a"
37+setmulticastname mcastname
38+
39+unlink
40+
41+connect "server-b"
42+setmulticastname mcastname
43+
44+sendlnmulticast mcastname "ls -l"
45+</pre>
46+
47+<h2>See also</h2>
48+<ul>
49+ <li><a href="sendmulticast.html">sendmulticast</a></li>
50+ <li><a href="setmulticastname.html">setmulticastname</a></li>
51+</ul>
52+
53+
54+</body>
55+</html>
Show on old repository browser