+
+
+
+
+
+
-
-
-
-
-
-
+
-
-
- |
- 茖???ユ? |
- ???size |
- ?帥???? / ?<? |
- URL / Hash |
-
-
+
+
+
+
+ |
+ 茖???ユ? |
+ ???size |
+ ?帥???? / ?<? |
+ URL / Hash |
+
+
-
+ |
-
-
-
-
-
+
+
+
+
+
+
-
-
+
+
-
-
-
- |
-
-
- |
-
-
- |
-
-
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
-
-
-
-
-
-
-
-
- |
-
-
-
-
-
-
- |
-
-
+
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+ |
+
+
Modified: branches/BRANCH_0043/o2on/src.o2on/O2Server_HTTP_Admin.h
===================================================================
--- branches/BRANCH_0043/o2on/src.o2on/O2Server_HTTP_Admin.h 2008-07-31 04:24:24 UTC (rev 113)
+++ branches/BRANCH_0043/o2on/src.o2on/O2Server_HTTP_Admin.h 2008-08-02 09:28:47 UTC (rev 114)
@@ -636,12 +636,18 @@
// remove query
it = hdr->queries.find("hash");
if (it != hdr->queries.end()) {
- if (it->second.size() >= HASHSIZE*2) {
- hashT hash;
- hash.assign(it->second.c_str(), it->second.size());
- if (QueryDB->DeleteKey(hash)) {
- msg = L"??????;
- QueryDB->Save(Profile->GetQueryFilePath());
+ strarray hasharray;
+ // comma separate
+ if (split(it->second.c_str(), ",", hasharray ) > 0) {
+ for (uint hashidx = 0; hashidx < hasharray.size(); hashidx++) {
+ if (hasharray[ hashidx ].size() >= HASHSIZE*2) {
+ hashT hash;
+ hash.assign( hasharray[ hashidx ].c_str(), hasharray[ hashidx ].size() );
+ if (QueryDB->DeleteKey(hash)) {
+ msg = L"??????;
+ QueryDB->Save(Profile->GetQueryFilePath());
+ }
+ }
}
}
}
@@ -650,12 +656,18 @@
// activate query
it = hdr->queries.find("hash");
if (it != hdr->queries.end()) {
- if (it->second.size() >= HASHSIZE*2) {
- hashT hash;
- hash.assign(it->second.c_str(), it->second.size());
- if (QueryDB->SetEnable(hash,true)) {
- msg = L"???????";
- QueryDB->Save(Profile->GetQueryFilePath());
+ strarray hasharray;
+ // comma separate
+ if (split(it->second.c_str(), ",", hasharray ) > 0) {
+ for (uint hashidx = 0; hashidx < hasharray.size(); hashidx++) {
+ if (hasharray[ hashidx ].size() >= HASHSIZE * 2) {
+ hashT hash;
+ hash.assign( hasharray[ hashidx ].c_str(), hasharray[ hashidx ].size() );
+ if (QueryDB->SetEnable(hash,true)) {
+ msg = L"???????";
+ QueryDB->Save(Profile->GetQueryFilePath());
+ }
+ }
}
}
}
@@ -664,12 +676,18 @@
// deactivate query
it = hdr->queries.find("hash");
if (it != hdr->queries.end()) {
- if (it->second.size() >= HASHSIZE*2) {
- hashT hash;
- hash.assign(it->second.c_str(), it->second.size());
- if (QueryDB->SetEnable(hash,false)) {
- msg = L"???????";
- QueryDB->Save(Profile->GetQueryFilePath());
+ strarray hasharray;
+ // comma separate
+ if (split(it->second.c_str(), ",", hasharray ) > 0) {
+ for (uint hashidx = 0; hashidx < hasharray.size(); hashidx++) {
+ if (hasharray[ hashidx ].size() >= HASHSIZE * 2) {
+ hashT hash;
+ hash.assign( hasharray[ hashidx ].c_str(), hasharray[ hashidx ].size() );
+ if (QueryDB->SetEnable(hash,false)) {
+ msg = L"???????";
+ QueryDB->Save(Profile->GetQueryFilePath());
+ }
+ }
}
}
}
From o2on-svn @ lists.sourceforge.jp Tue Aug 5 22:11:37 2008
From: o2on-svn @ lists.sourceforge.jp (o2on svn commit)
Date: Tue, 05 Aug 2008 22:11:37 +0900
Subject: [o2on-svn] =?utf-8?q?=5B115=5D_REVERT=3A_rev107_begin=3B_end=3B__?=
=?utf-8?b?44KS5L2/44GG44Go5q2j5bi444Gr5YCk44GM5Y+W5b6X44Gn44GN44Gq44GE?=
=?utf-8?b?54K6?=
Message-ID: <1217941897.647150.27520.nullmailer@users.sourceforge.jp>
Revision: 115
http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=o2on&view=rev&rev=115
Author: k-uehara
Date: 2008-08-05 22:11:37 +0900 (Tue, 05 Aug 2008)
Log Message:
-----------
REVERT: rev107 begin; end; を使うと正常に値が取得できない為
Revision Links:
--------------
http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=o2on&view=rev&rev=107
Modified Paths:
--------------
branches/BRANCH_0043/o2on/src.o2on/O2DatDB.cpp
Modified: branches/BRANCH_0043/o2on/src.o2on/O2DatDB.cpp
===================================================================
--- branches/BRANCH_0043/o2on/src.o2on/O2DatDB.cpp 2008-08-02 09:28:47 UTC (rev 114)
+++ branches/BRANCH_0043/o2on/src.o2on/O2DatDB.cpp 2008-08-05 13:11:37 UTC (rev 115)
@@ -324,7 +324,7 @@
if (err != SQLITE_OK)
goto error;
- char sql[] = "begin;analyze;end; vacuum dat;";
+ char sql[] = "analyze; vacuum dat;";
err = sqlite3_exec(db, sql, NULL, 0, 0);
if (err != SQLITE_OK)
@@ -814,10 +814,7 @@
sqlite3_busy_timeout(db, 5000);
- wchar_t *sql =
- L"begin;"
- L"select count(*) from dat;"
- L"end;";
+ wchar_t *sql = L"select count(*) from dat;";
err = sqlite3_prepare16_v2(db, sql, wcslen(sql)*2, &stmt, NULL);
if (err != SQLITE_OK)
@@ -918,10 +915,7 @@
goto error;
sqlite3_busy_timeout(db, 5000);
- wchar_t *sql =
- L"begin;"
- L"select sum(disksize) from dat;"
- L"end;";
+ wchar_t *sql = L"select sum(disksize) from dat;";
err = sqlite3_prepare16_v2(db, sql, wcslen(sql)*2, &stmt, NULL);
if (err != SQLITE_OK)
From o2on-svn @ lists.sourceforge.jp Tue Aug 5 22:13:24 2008
From: o2on-svn @ lists.sourceforge.jp (o2on svn commit)
Date: Tue, 05 Aug 2008 22:13:24 +0900
Subject: [o2on-svn] =?utf-8?b?WzExNl0gRklYOiAgZGF044OV44Kh44Kk44Or44Gu5YWI?=
=?utf-8?b?6aCt44GrTEbjgYzjgYLjgovjgajokL3jgaHjgos=?=
Message-ID: <1217942004.202423.28832.nullmailer@users.sourceforge.jp>
Revision: 116
http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=o2on&view=rev&rev=116
Author: k-uehara
Date: 2008-08-05 22:13:24 +0900 (Tue, 05 Aug 2008)
Log Message:
-----------
FIX: dat????ゃ???????LF???????純???
Modified Paths:
--------------
branches/BRANCH_0043/o2on/src.o2on/O2DatIO.cpp
Modified: branches/BRANCH_0043/o2on/src.o2on/O2DatIO.cpp
===================================================================
--- branches/BRANCH_0043/o2on/src.o2on/O2DatIO.cpp 2008-08-05 13:11:37 UTC (rev 115)
+++ branches/BRANCH_0043/o2on/src.o2on/O2DatIO.cpp 2008-08-05 13:13:24 UTC (rev 116)
@@ -278,6 +278,14 @@
while (pos_lf < end && p[pos_lf] != '\n')
pos_lf++;
+ if (pos_lf == 0) {
+ if (Logger) {
+ Logger->AddLog(O2LT_WARNING, MODULE, 0, 0,
+ "??????ク?:???LF (%s)", path.c_str());
+ }
+ return false;
+ }
+
if (pos_lf == end || p[pos_lf] != '\n') {
if (Logger) {
Logger->AddLog(O2LT_WARNING, MODULE, 0, 0,
From o2on-svn @ lists.sourceforge.jp Sat Aug 9 15:52:21 2008
From: o2on-svn @ lists.sourceforge.jp (o2on svn commit)
Date: Sat, 09 Aug 2008 15:52:21 +0900
Subject: [o2on-svn] =?utf-8?b?WzExN10gIGJ1aWxkIDAwNDUg44Oq44Oq44O844K5?=
Message-ID: <1218264741.093430.30349.nullmailer@users.sourceforge.jp>
Revision: 117
http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=o2on&view=rev&rev=117
Author: k-uehara
Date: 2008-08-09 15:52:20 +0900 (Sat, 09 Aug 2008)
Log Message:
-----------
build 0045 ????若?
Modified Paths:
--------------
branches/BRANCH_0043/o2on/doc/history.txt
branches/BRANCH_0043/o2on/src.o2on/O2Version.h
Modified: branches/BRANCH_0043/o2on/doc/history.txt
===================================================================
--- branches/BRANCH_0043/o2on/doc/history.txt 2008-08-05 13:13:24 UTC (rev 116)
+++ branches/BRANCH_0043/o2on/doc/history.txt 2008-08-09 06:52:20 UTC (rev 117)
@@ -1,3 +1,14 @@
+v0.02? (build 0045) 2008/08/09
+???????????????
+?DB?????????
+?????dat???????????????
+????????????????
+ - Boost 1.35.0
+ - SQLite 3.6.0
+* ???????
+?SQL?????????
+?DB???????dat?????????
+
v0.02? (build 0044) 2008/05/31
?analyze???????????
?datname??????????
Modified: branches/BRANCH_0043/o2on/src.o2on/O2Version.h
===================================================================
--- branches/BRANCH_0043/o2on/src.o2on/O2Version.h 2008-08-05 13:13:24 UTC (rev 116)
+++ branches/BRANCH_0043/o2on/src.o2on/O2Version.h 2008-08-09 06:52:20 UTC (rev 117)
@@ -4,7 +4,7 @@
#define APP_NAME "o2on"
#define APP_VER_MAJOR 0
#define APP_VER_MINOR 2
-#define APP_BUILDNO 44
+#define APP_BUILDNO 45
#define APP_VER_PREFIX "alpha"
#define APP_VER_FORMAT "%s %1d.%02d %s (build %04d)"
#define USERAGENT_FORMAT "%s/%.1f (%s/%1d.%02d.%04d; %s)"
\ No newline at end of file
From o2on-svn @ lists.sourceforge.jp Sat Aug 9 16:02:12 2008
From: o2on-svn @ lists.sourceforge.jp (o2on svn commit)
Date: Sat, 09 Aug 2008 16:02:12 +0900
Subject: [o2on-svn] =?utf-8?b?WzExOF0gIOODu+aknOe0ouOCr+OCqOODquOBruS4gA==?=
=?utf-8?b?5ous5aSJ5pu05qmf6IO96L+95Yqg?=
Message-ID: <1218265332.056897.5242.nullmailer@users.sourceforge.jp>
Revision: 118
http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=o2on&view=rev&rev=118
Author: k-uehara
Date: 2008-08-09 16:02:11 +0900 (Sat, 09 Aug 2008)
Log Message:
-----------
・検索クエリの一括変更機能追加
・DB再構築プロセス変更
・無視板のdatリクエストを送らないようにした
・使用ライブラリバージョンアップ
- Boost 1.35.0
- SQLite 3.6.0
* バグフィックス
・SQLの変数バインド忘れ
・DB再構築時に破損datで落ちることがある
Added Paths:
-----------
tags/build0045/
Copied: tags/build0045 (from rev 117, branches/BRANCH_0043)
From o2on-svn @ lists.sourceforge.jp Sun Aug 10 13:32:54 2008
From: o2on-svn @ lists.sourceforge.jp (o2on svn commit)
Date: Sun, 10 Aug 2008 13:32:54 +0900
Subject: [o2on-svn] [119] replace trunk
Message-ID: <1218342774.953075.8399.nullmailer@users.sourceforge.jp>
Revision: 119
http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=o2on&view=rev&rev=119
Author: k-uehara
Date: 2008-08-10 13:32:54 +0900 (Sun, 10 Aug 2008)
Log Message:
-----------
replace trunk
Removed Paths:
-------------
trunk/o2on/
From o2on-svn @ lists.sourceforge.jp Sun Aug 10 13:34:15 2008
From: o2on-svn @ lists.sourceforge.jp (o2on svn commit)
Date: Sun, 10 Aug 2008 13:34:15 +0900
Subject: [o2on-svn] [120] replace trunk
Message-ID: <1218342855.640240.9627.nullmailer@users.sourceforge.jp>
Revision: 120
http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=o2on&view=rev&rev=120
Author: k-uehara
Date: 2008-08-10 13:34:15 +0900 (Sun, 10 Aug 2008)
Log Message:
-----------
replace trunk
Added Paths:
-----------
trunk/o2on/
Copied: trunk/o2on (from rev 119, branches/BRANCH_0043/o2on)
From o2on-svn @ lists.sourceforge.jp Wed Sep 24 20:34:08 2008
From: o2on-svn @ lists.sourceforge.jp (o2on svn commit)
Date: Wed, 24 Sep 2008 20:34:08 +0900
Subject: [o2on-svn] =?utf-8?b?WzEyMV0gRklYOiAgIzEzMzk4IHF1ZXJ5bGltaXTjgYw=?=
=?utf-8?b?5Y+N5pig44GV44KM44Gq44GE?=
Message-ID: <1222256048.966496.21904.nullmailer@users.sourceforge.jp>
Revision: 121
http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=o2on&view=rev&rev=121
Author: k-uehara
Date: 2008-09-24 20:34:08 +0900 (Wed, 24 Sep 2008)
Log Message:
-----------
FIX: #13398 querylimitが反映されない
Ticket Links:
:-----------
http://sourceforge.jp/projects/o2on/tracker/detail/13398
Modified Paths:
--------------
trunk/o2on/src.o2on/main.cpp
Modified: trunk/o2on/src.o2on/main.cpp
===================================================================
--- trunk/o2on/src.o2on/main.cpp 2008-08-10 04:34:15 UTC (rev 120)
+++ trunk/o2on/src.o2on/main.cpp 2008-09-24 11:34:08 UTC (rev 121)
@@ -423,6 +423,7 @@
SakuKeyDB->SetLimit(O2_SAKUKEY_LIMIT);
QueryDB = new O2KeyDB(L"QueryDB", true, Logger);
QueryDB->Load(Profile->GetQueryFilePath());
+ QueryDB->SetLimit(Profile->GetQueryLimit());
SakuDB = new O2KeyDB(L"SakuDB", true, Logger);
SakuDB->Load(Profile->GetSakuFilePath());
IMDB = new O2IMDB(Logger);
From o2on-svn @ lists.sourceforge.jp Wed Sep 24 23:06:00 2008
From: o2on-svn @ lists.sourceforge.jp (o2on svn commit)
Date: Wed, 24 Sep 2008 23:06:00 +0900
Subject: [o2on-svn] =?utf-8?b?WzEyMl0gRklYOiAgIzEzNDkyIOS6jOmHjei1t+WLlQ==?=
=?utf-8?b?44GX44KI44GG44Go44GZ44KL44Go5Yid5pyf44OO44O844OJ44GM5raI44GI?=
=?utf-8?b?44KL?=
Message-ID: <1222265160.097823.5348.nullmailer@users.sourceforge.jp>
Revision: 122
http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=o2on&view=rev&rev=122
Author: osa_p
Date: 2008-09-24 23:05:59 +0900 (Wed, 24 Sep 2008)
Log Message:
-----------
FIX: #13492 二重起動しようとすると初期ノードが消える
Ticket Links:
:-----------
http://sourceforge.jp/projects/o2on/tracker/detail/13492
Modified Paths:
--------------
trunk/o2on/src.o2on/main.cpp
Modified: trunk/o2on/src.o2on/main.cpp
===================================================================
--- trunk/o2on/src.o2on/main.cpp 2008-09-24 11:34:08 UTC (rev 121)
+++ trunk/o2on/src.o2on/main.cpp 2008-09-24 14:05:59 UTC (rev 122)
@@ -254,6 +254,15 @@
//bench();
//return (0);
+ HANDLE Mutex = NULL;
+ if (!O2DEBUG) {
+ Mutex = CreateMutex(NULL, FALSE, _T(CLASS_NAME));
+ if (GetLastError() == ERROR_ALREADY_EXISTS) {
+ if (Mutex) CloseHandle(Mutex);
+ return (0);
+ }
+ }
+
if (!O2DEBUG && FindWindow(_T(CLASS_NAME), NULL))
return (0);
@@ -268,6 +277,9 @@
DispatchMessage(&msg);
}
}
+
+ if (Mutex) CloseHandle(Mutex);
+
return ((int)msg.wParam);
}
From o2on-svn @ lists.sourceforge.jp Sat Sep 27 14:35:24 2008
From: o2on-svn @ lists.sourceforge.jp (o2on svn commit)
Date: Sat, 27 Sep 2008 14:35:24 +0900
Subject: [o2on-svn] =?utf-8?b?WzEyM10gRklYOiAgIzEyNjYzIElQ5aSJ5pu05pmC44Gr?=
=?utf-8?b?5qSc5Ye644Gn44GN44Gq44GE?=
Message-ID: <1222493724.312949.20873.nullmailer@users.sourceforge.jp>
Revision: 123
http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=o2on&view=rev&rev=123
Author: osa_p
Date: 2008-09-27 14:35:23 +0900 (Sat, 27 Sep 2008)
Log Message:
-----------
FIX: #12663 IP紊?????罎???с????
Ticket Links:
:-----------
http://sourceforge.jp/projects/o2on/tracker/detail/12663
Modified Paths:
--------------
trunk/o2on/src.o2on/main.cpp
Modified: trunk/o2on/src.o2on/main.cpp
===================================================================
--- trunk/o2on/src.o2on/main.cpp 2008-09-24 14:05:59 UTC (rev 122)
+++ trunk/o2on/src.o2on/main.cpp 2008-09-27 05:35:23 UTC (rev 123)
@@ -2728,6 +2728,7 @@
ChangeTrayIcon(UINT id)
{
if (time(NULL) - Server_P2P->GetLastAcceptTime() < (5*60)) {
+ // ?????????????A???????? O ??????????????
switch (id) {
case IDI_A: id = IDI_B; break;
case IDI_A_IN: id = IDI_B_IN; break;
@@ -2735,7 +2736,25 @@
case IDI_A_INOUT: id = IDI_B_INOUT; break;
}
}
+ else {
+ // Port0?????????????????????AIP????????????????
+ // GetGlobalIP???????AP2P????????????P2P?????
+ // ????????????????????
+ static time_t LastRestartP2P = 0;
+ if ((Profile->IsPort0() == false) &&
+ (Job_GetGlobalIP->IsActive() == false) &&
+ (time(NULL) - LastRestartP2P > (10*60) )) {
+ LastRestartP2P = time(NULL);
+ Profile->SetIP(0);
+ Job_GetGlobalIP->SetActive(true);
+
+ StopP2P(false);
+ StartP2P(true);
+
+ }
+ }
+
HICON icon = (HICON)LoadImage(
instance,
MAKEINTRESOURCE(id), IMAGE_ICON,