[Ttssh2-commit] [4151] 圧縮を有効 / 無効にするオプション、 /ssh-C, / ssh-c を追加。

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2010年 11月 10日 (水) 15:20:21 JST


Revision: 4151
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4151
Author:   doda
Date:     2010-11-10 15:20:21 +0900 (Wed, 10 Nov 2010)

Log Message:
-----------
圧縮を有効/無効にするオプション、/ssh-C, /ssh-c を追加。

Modified Paths:
--------------
    trunk/ttssh2/ttxssh/ttxssh.c


-------------- next part --------------
Modified: trunk/ttssh2/ttxssh/ttxssh.c
===================================================================
--- trunk/ttssh2/ttxssh/ttxssh.c	2010-11-06 20:43:44 UTC (rev 4150)
+++ trunk/ttssh2/ttxssh/ttxssh.c	2010-11-10 06:20:21 UTC (rev 4151)
@@ -1529,6 +1529,19 @@
 				read_ssh_options_from_user_file(pvar, option + 13);
 				DeleteFile(option + 13);
 
+			} else if (MATCH_STR(option + 4, "-C=") == 0) {
+				pvar->settings.CompressionLevel = atoi(option+7);
+				if (pvar->settings.CompressionLevel < 0) {
+					pvar->settings.CompressionLevel = 0;
+				}
+				else if (pvar->settings.CompressionLevel > 9) {
+					pvar->settings.CompressionLevel = 9;
+				}
+			} else if (MATCH_STR(option + 4, "-C") == 0) {
+				pvar->settings.CompressionLevel = 6;
+			} else if (MATCH_STR(option + 4, "-c") == 0) {
+				pvar->settings.CompressionLevel = 0;
+
 			// /ssh1 ‚Æ /ssh2 ƒIƒvƒVƒ‡ƒ“‚̐V‹K’ljÁ (2006.9.16 maya)
 			} else if (MATCH_STR(option + 4, "1") == 0) {
 				pvar->settings.Enabled = 1;



Ttssh2-commit メーリングリストの案内
Back to archive index