senlnmulticast を追加 Ticket: #37414
取りあえず動作は sendlnbroadcast 準拠。(同じ関数を使っているから)
@@ -44,6 +44,7 @@ | ||
44 | 44 | <ul> |
45 | 45 | <li>added the <a href="../setup/teraterm-misc.html#LogTimestampUTC">LogTimestampUTC</a> entry in the teraterm.ini file. The default is off.</li> |
46 | 46 | </ul></li> |
47 | + <li>added the <a href="../macro/command/sendlnmulticast.html">sendlnmulticast</a> command.</li> | |
47 | 48 | </ul> |
48 | 49 | </li> |
49 | 50 |
@@ -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 <multicastname> <data1> <data2>.... | |
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 <data> 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> |
@@ -44,6 +44,7 @@ | ||
44 | 44 | <ul> |
45 | 45 | <li>teraterm.ini に <a href="../setup/teraterm-misc.html#LogTimestampUTC">LogTimestampUTC</a> エントリを追加した。デフォルトはoff。</li> |
46 | 46 | </ul></li> |
47 | + <li><a href="../macro/command/sendlnmulticast.html">sendlnmulticast</a> マクロコマンドを追加した。</li> | |
47 | 48 | </ul> |
48 | 49 | </li> |
49 | 50 |
@@ -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 <multicastname> <data1> <data2>.... | |
22 | +</pre> | |
23 | + | |
24 | +<h2>解説</h2> | |
25 | + | |
26 | +<p> | |
27 | +文字列とそれに続く改行文字を、指定した端末にマルチキャスト送信する。<br> | |
28 | +<data> の形式は、<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> |
@@ -4080,6 +4080,7 @@ | ||
4080 | 4080 | return 0; |
4081 | 4081 | } |
4082 | 4082 | |
4083 | +// sendbroadcast / sendlnbroadcast の二つから利用 (crlfの値で動作を変える) | |
4083 | 4084 | static WORD TTLSendBroadcast(BOOL crlf) |
4084 | 4085 | { |
4085 | 4086 | TStrVal buf; |
@@ -4095,7 +4096,6 @@ | ||
4095 | 4096 | return SendCmnd(CmdSendBroadcast, 0); |
4096 | 4097 | } |
4097 | 4098 | |
4098 | -// "setmulticastname"コマンド (2009.3.5 yutaka) | |
4099 | 4099 | WORD TTLSetMulticastName() |
4100 | 4100 | { |
4101 | 4101 | TStrVal Str; |
@@ -4109,8 +4109,8 @@ | ||
4109 | 4109 | return SendCmnd(CmdSetMulticastName, 0); |
4110 | 4110 | } |
4111 | 4111 | |
4112 | -// "sendmulticast"コマンド (2009.3.5 yutaka) | |
4113 | -WORD TTLSendMulticast() | |
4112 | +// sendmulticast / sendlnmulticast の二つから利用 (crlfの値で動作を変える) | |
4113 | +WORD TTLSendMulticast(BOOL crlf) | |
4114 | 4114 | { |
4115 | 4115 | TStrVal buf, Str; |
4116 | 4116 | WORD Err; |
@@ -4124,7 +4124,7 @@ | ||
4124 | 4124 | if (Err!=0) return Err; |
4125 | 4125 | SetFile(Str); |
4126 | 4126 | |
4127 | - if ((Err = GetBroadcastString(buf, MaxStrLen, FALSE)) != 0) | |
4127 | + if ((Err = GetBroadcastString(buf, MaxStrLen, crlf)) != 0) | |
4128 | 4128 | return Err; |
4129 | 4129 | |
4130 | 4130 | SetSecondFile(buf); |
@@ -6209,8 +6209,10 @@ | ||
6209 | 6209 | Err = TTLSendBroadcast(FALSE); break; |
6210 | 6210 | case RsvSendlnBroadcast: |
6211 | 6211 | Err = TTLSendBroadcast(TRUE); break; |
6212 | + case RsvSendlnMulticast: | |
6213 | + Err = TTLSendMulticast(TRUE); break; | |
6212 | 6214 | case RsvSendMulticast: |
6213 | - Err = TTLSendMulticast(); break; | |
6215 | + Err = TTLSendMulticast(FALSE); break; | |
6214 | 6216 | case RsvSetMulticastName: |
6215 | 6217 | Err = TTLSetMulticastName(); break; |
6216 | 6218 | case RsvSendFile: |
@@ -358,6 +358,7 @@ | ||
358 | 358 | else if (_stricmp(Str,"sendbreak")==0) *WordId = RsvSendBreak; |
359 | 359 | else if (_stricmp(Str,"sendbroadcast")==0) *WordId = RsvSendBroadcast; |
360 | 360 | else if (_stricmp(Str,"sendlnbroadcast")==0) *WordId = RsvSendlnBroadcast; |
361 | + else if (_stricmp(Str,"sendlnmulticast")==0) *WordId = RsvSendlnMulticast; | |
361 | 362 | else if (_stricmp(Str,"sendmulticast")==0) *WordId = RsvSendMulticast; |
362 | 363 | else if (_stricmp(Str,"setfileattr")==0) *WordId = RsvSetFileAttr; |
363 | 364 | else if (_stricmp(Str,"setmulticastname")==0) *WordId = RsvSetMulticastName; |
@@ -232,6 +232,7 @@ | ||
232 | 232 | #define RsvFileUnLock 154 |
233 | 233 | #define RsvContinue 155 |
234 | 234 | #define RsvRegexOption 156 |
235 | +#define RsvSendlnMulticast 157 | |
235 | 236 | |
236 | 237 | #define RsvSetDebug 175 |
237 | 238 | #define RsvYmodemRecv 176 |